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>
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