Struct network_clique::mock::Channel
source · pub struct Channel<T>(pub UnboundedSender<T>, pub Arc<Mutex<UnboundedReceiver<T>>>);
Tuple Fields§
§0: UnboundedSender<T>
§1: Arc<Mutex<UnboundedReceiver<T>>>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Channel<T>
impl<T> Send for Channel<T>where
T: Send,
impl<T> Sync for Channel<T>where
T: Send,
impl<T> Unpin for Channel<T>
impl<T> !UnwindSafe for Channel<T>
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