pub struct Sender<T, E> { /* private fields */ }
👎 Deprecated since 0.1.4:
use sync::mpsc::channel instead
Expand description
The transmission end of a channel which is used to send values.
This is created by the channel
method in the stream
module.
Implementations
sourceimpl<T, E> Sender<T, E>
impl<T, E> Sender<T, E>
sourcepub fn send(self, t: Result<T, E>) -> FutureSender<T, E>
👎 Deprecated since 0.1.4: use sync::mpsc::channel instead
pub fn send(self, t: Result<T, E>) -> FutureSender<T, E>
👎 Deprecated since 0.1.4:
use sync::mpsc::channel instead
Sends a new value along this channel to the receiver.
This method consumes the sender and returns a future which will resolve to the sender again when the value sent has been consumed.
Trait Implementations
Auto Trait Implementations
impl<T, E> !RefUnwindSafe for Sender<T, E>
impl<T, E> Send for Sender<T, E> where
E: Send,
T: Send,
impl<T, E> Sync for Sender<T, E> where
E: Send,
T: Send,
impl<T, E> Unpin for Sender<T, E>
impl<T, E> !UnwindSafe for Sender<T, E>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more