[][src]Struct suspend_channel::Sender

pub struct Sender<T> { /* fields omitted */ }

Created by channel() and used to dispatch a stream of values to a an associated Receiver.

Implementations

impl<T> Sender<T>[src]

pub fn is_canceled(&self) -> bool[src]

Check if the receiver has already been dropped.

pub fn send(&mut self, value: T) -> TrackSend<'_, T>

Notable traits for TrackSend<'_, T>

impl<T> Future for TrackSend<'_, T> type Output = Result<(), T>;
[src]

Dispatch the result and consume the Sender.

pub fn into_send(self, value: T) -> Result<(), T>[src]

Send a single result and consume the Sender.

Trait Implementations

impl<T: Debug> Debug for Sender<T>[src]

impl<T> Drop for Sender<T>[src]

impl<T: Send> Send for Sender<T>[src]

impl<T: Send> Sync for Sender<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for Sender<T>[src]

impl<T> Unpin for Sender<T> where
    T: Unpin
[src]

impl<T> !UnwindSafe for Sender<T>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.