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<'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§
source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere F: Future,
§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