pub struct IntentBuilder<M>(/* private fields */);
Expand description
A helper class returned from Intent::of()
See the documentation of Intent
for guide
Implementations§
Source§impl<M> IntentBuilder<M>
impl<M> IntentBuilder<M>
pub fn expect_bytes(self, min_bytes: usize) -> Intent<M>
pub fn expect_delimiter( self, delim: &'static [u8], max_bytes: usize, ) -> Intent<M>
pub fn expect_delimiter_after( self, offset: usize, delim: &'static [u8], max_bytes: usize, ) -> Intent<M>
pub fn expect_flush(self) -> Intent<M>
Sourcepub fn expect(self, e: Expectation) -> Intent<M>
pub 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
pub fn sleep(self) -> Intent<M>
Trait Implementations§
Auto Trait Implementations§
impl<M> Freeze for IntentBuilder<M>where
M: Freeze,
impl<M> RefUnwindSafe for IntentBuilder<M>where
M: RefUnwindSafe,
impl<M> Send for IntentBuilder<M>where
M: Send,
impl<M> Sync for IntentBuilder<M>where
M: Sync,
impl<M> Unpin for IntentBuilder<M>where
M: Unpin,
impl<M> UnwindSafe for IntentBuilder<M>where
M: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more