pub struct MockStream {
pub receiver: UnboundedReceiver<Bytes>,
}
Expand description
A mock stream that reads messages from a channel.
Fields§
§receiver: UnboundedReceiver<Bytes>
Implementations§
source§impl MockStream
impl MockStream
sourcepub fn new() -> (Self, UnboundedSender<Bytes>)
pub fn new() -> (Self, UnboundedSender<Bytes>)
Create a new MockStream
and a corresponding sender.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MockStream
impl !RefUnwindSafe for MockStream
impl Send for MockStream
impl Sync for MockStream
impl Unpin for MockStream
impl !UnwindSafe for MockStream
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