Struct tokio_test::stream_mock::StreamMockBuilder
source · pub struct StreamMockBuilder<T: Unpin> { /* private fields */ }
Expand description
A builder for StreamMock
Implementations§
source§impl<T: Unpin> StreamMockBuilder<T>
impl<T: Unpin> StreamMockBuilder<T>
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new empty StreamMockBuilder
sourcepub fn build(self) -> StreamMock<T>
pub fn build(self) -> StreamMock<T>
Build the StreamMock
Trait Implementations§
source§impl<T: Clone + Unpin> Clone for StreamMockBuilder<T>
impl<T: Clone + Unpin> Clone for StreamMockBuilder<T>
source§fn clone(&self) -> StreamMockBuilder<T>
fn clone(&self) -> StreamMockBuilder<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<T> Freeze for StreamMockBuilder<T>
impl<T> RefUnwindSafe for StreamMockBuilder<T>where
T: RefUnwindSafe,
impl<T> Send for StreamMockBuilder<T>where
T: Send,
impl<T> Sync for StreamMockBuilder<T>where
T: Sync,
impl<T> Unpin for StreamMockBuilder<T>
impl<T> UnwindSafe for StreamMockBuilder<T>where
T: 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