pub struct SendFut<'a, T> { /* private fields */ }Expand description
A future that sends a value into a channel.
Can be created via Sender::send_async or Sender::into_send_async.
Implementations
sourceimpl<'a, T> SendFut<'a, T>
impl<'a, T> SendFut<'a, T>
sourcepub fn is_disconnected(&self) -> bool
pub fn is_disconnected(&self) -> bool
sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
See Sender::is_empty.
sourcepub fn is_full(&self) -> bool
pub fn is_full(&self) -> bool
See Sender::is_full.
sourcepub fn len(&self) -> usize
pub fn len(&self) -> usize
See Sender::len.
sourcepub fn capacity(&self) -> Option<usize>
pub fn capacity(&self) -> Option<usize>
See Sender::capacity.
Trait Implementations
sourceimpl<'a, T> FusedFuture for SendFut<'a, T>
impl<'a, T> FusedFuture for SendFut<'a, T>
sourcefn is_terminated(&self) -> bool
fn is_terminated(&self) -> bool
Returns true if the underlying future should no longer be polled.
impl<'pin, 'a, T> Unpin for SendFut<'a, T> where
__SendFut<'pin, 'a, T>: Unpin,
Auto Trait Implementations
impl<'a, T> !RefUnwindSafe for SendFut<'a, T>
impl<'a, T> Send for SendFut<'a, T> where
T: Send,
impl<'a, T> Sync for SendFut<'a, T> where
T: Send + Sync,
impl<'a, T> !UnwindSafe for SendFut<'a, T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<F> IntoFuture for F where
F: Future,
impl<F> IntoFuture for F where
F: Future,
type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
sourcefn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more