pub struct MockSink {
pub sender: UnboundedSender<Bytes>,
}
Expand description
A mock sink that stores sent messages in a channel.
Fields§
§sender: UnboundedSender<Bytes>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MockSink
impl !RefUnwindSafe for MockSink
impl Send for MockSink
impl Sync for MockSink
impl Unpin for MockSink
impl !UnwindSafe for MockSink
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