[][src]Struct spmc::Sender

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

The Sending side of a SPMC channel.

Methods

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

pub fn send(&mut self, t: T) -> Result<(), SendError<T>>[src]

Send a message to the receivers.

Returns a SendError if there are no more receivers listening.

Trait Implementations

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

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

Auto Trait Implementations

impl<T> Unpin for Sender<T>

impl<T> !Sync for Sender<T>

impl<T> !RefUnwindSafe for Sender<T>

impl<T> !UnwindSafe for Sender<T>

Blanket Implementations

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.

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

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

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