clementine_core

Macro fetch_next_optional_message_from_stream

Source
macro_rules! fetch_next_optional_message_from_stream {
    ($stream:expr, $field:ident) => { ... };
}
Expand description

Fetches next message from a stream.

§Parameters

  • stream: tonic::Streaming typed input stream
  • field: Input field ident (struct member) to look in the next message

§Returns

An Option containing the next message. Will return a None variant if stream has exhausted.