[][src]Struct async_local_bounded_channel::Sender

pub struct Sender<'a, T, N: ArrayLength<Option<T>>> { /* fields omitted */ }

The endpoint of a channel for sending values.

Methods

impl<'a, T: Unpin, N: ArrayLength<Option<T>>> Sender<'a, T, N>[src]

pub fn send(&mut self, value: T) -> impl Future<Output = Result<(), T>> + '_[src]

Asynchronously send a value through the channel.

If the channel is already at full capacity, this will wait until the Receiver consumes a value, and then notify that the channel is ready. If the receiver endpoint has been dropped, this returns Err(value), regardless of whether there is enough capacity.

Trait Implementations

impl<'a, T, N: ArrayLength<Option<T>>> Drop for Sender<'a, T, N>[src]

Auto Trait Implementations

impl<'a, T, N> RefUnwindSafe for Sender<'a, T, N> where
    <N as ArrayLength<Option<T>>>::ArrayType: RefUnwindSafe

impl<'a, T, N> Send for Sender<'a, T, N> where
    T: Send

impl<'a, T, N> Sync for Sender<'a, T, N> where
    T: Sync

impl<'a, T, N> Unpin for Sender<'a, T, N>

impl<'a, T, N> !UnwindSafe for Sender<'a, T, N>

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> Same<T> for T[src]

type Output = T

Should always be Self

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.