Trait Subscriber

Source
pub trait Subscriber {
    // Required method
    fn next(&mut self) -> Result<Option<FieldOutput>, Error>;
}
Expand description

A trait for subscribing to a stream of field outputs.

Required Methods§

Source

fn next(&mut self) -> Result<Option<FieldOutput>, Error>

Gets the next field output from the stream.

Returns Ok(Some(output)) if a field output is available, Ok(None) if the stream has ended, or Err if an error occurred.

Implementors§