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§
source§impl<'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§
source§impl<'a, T> FusedFuture for SendFut<'a, T>
impl<'a, T> FusedFuture for SendFut<'a, T>
source§fn is_terminated(&self) -> bool
fn is_terminated(&self) -> bool
Returns
true
if the underlying future should no longer be polled.impl<T> Unpin for SendFut<'_, T>
Auto Trait Implementations§
impl<'a, T> Freeze for SendFut<'a, T>where
T: Freeze,
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>
impl<'a, T> !UnwindSafe for SendFut<'a, T>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more