[−][src]Struct async_local_bounded_channel::Sender
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
Auto Trait Implementations
impl<'a, T, N> RefUnwindSafe for Sender<'a, T, N> where
<N as ArrayLength<Option<T>>>::ArrayType: RefUnwindSafe,
<N as ArrayLength<Option<T>>>::ArrayType: RefUnwindSafe,
impl<'a, T, N> Send for Sender<'a, T, N> where
T: Send,
T: Send,
impl<'a, T, N> Sync for Sender<'a, T, N> where
T: Sync,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
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>,