[−][src]Struct tokio::prelude::stream::Sender
Deprecated since 0.1.4:
use sync::mpsc::channel instead
The transmission end of a channel which is used to send values.
This is created by the channel
method in the stream
module.
Methods
impl<T, E> Sender<T, E>
[src]
pub fn send(self, t: Result<T, E>) -> FutureSender<T, E>
[src]
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> Send for Sender<T, E> where
E: Send,
T: Send,
E: Send,
T: Send,
impl<T, E> Unpin for Sender<T, E>
impl<T, E> Sync for Sender<T, E> where
E: Send,
T: Send,
E: Send,
T: Send,
impl<T, E> !UnwindSafe for Sender<T, E>
impl<T, E> !RefUnwindSafe for Sender<T, E>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
ⓘImportant traits for &'_ mut Wfn borrow_mut(&mut self) -> &mut T
[src]
ⓘImportant traits for &'_ mut W
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,