Struct rotor_stream::IntentBuilder [] [src]

pub struct IntentBuilder<M>(_);

A helper class returned from Intent::of()

See the documentation of Intent for guide

Methods

impl<M> IntentBuilder<M>
[src]

fn expect_bytes(self, min_bytes: usize) -> Intent<M>

fn expect_delimiter(self, delim: &'static [u8], max_bytes: usize) -> Intent<M>

fn expect_delimiter_after(self, offset: usize, delim: &'static [u8], max_bytes: usize) -> Intent<M>

fn expect_flush(self) -> Intent<M>

fn expect(self, e: Expectation) -> Intent<M>

Add a generic expectation

The method is useful if you're returning an expectation from somewhere otherwise use specific expect_* methods

fn sleep(self) -> Intent<M>

Trait Implementations

impl<M: Debug> Debug for IntentBuilder<M>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.