pub struct MpscSender<Value, NextAccepts> { /* private fields */ }Expand description
Sends values through an mpsc::Sender and forwards the Result downstream.
Implementations§
Trait Implementations§
Source§impl<Value, NextAccepts> Accepts<Value> for MpscSender<Value, NextAccepts>
impl<Value, NextAccepts> Accepts<Value> for MpscSender<Value, NextAccepts>
Source§impl<Value, NextAccepts> AsyncAccepts<Value> for MpscSender<Value, NextAccepts>
impl<Value, NextAccepts> AsyncAccepts<Value> for MpscSender<Value, NextAccepts>
fn accept_async<'a>(&'a self, value: Value) -> impl Future<Output = ()> + 'awhere
Value: 'a,
Source§impl<Value: Clone, NextAccepts: Clone> Clone for MpscSender<Value, NextAccepts>
impl<Value: Clone, NextAccepts: Clone> Clone for MpscSender<Value, NextAccepts>
Source§fn clone(&self) -> MpscSender<Value, NextAccepts>
fn clone(&self) -> MpscSender<Value, NextAccepts>
Returns a duplicate 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<Value, NextAccepts> Freeze for MpscSender<Value, NextAccepts>where
NextAccepts: Freeze,
impl<Value, NextAccepts> RefUnwindSafe for MpscSender<Value, NextAccepts>where
NextAccepts: RefUnwindSafe,
impl<Value, NextAccepts> Send for MpscSender<Value, NextAccepts>
impl<Value, NextAccepts> Sync for MpscSender<Value, NextAccepts>
impl<Value, NextAccepts> Unpin for MpscSender<Value, NextAccepts>where
NextAccepts: Unpin,
impl<Value, NextAccepts> UnwindSafe for MpscSender<Value, NextAccepts>where
NextAccepts: 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