pub struct SendFuture<T> { /* private fields */ }Expand description
A future that sends a value into a channel.
Implementations§
Source§impl<T> SendFuture<T>
impl<T> SendFuture<T>
Sourcepub fn is_closed(&self) -> bool
pub fn is_closed(&self) -> bool
See Sender::is_closed.
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<T: Debug> Debug for SendFuture<T>
impl<T: Debug> Debug for SendFuture<T>
Source§impl<T> Future for SendFuture<T>
impl<T> Future for SendFuture<T>
impl<T> Unpin for SendFuture<T>
Auto Trait Implementations§
impl<T> Freeze for SendFuture<T>where
T: Freeze,
impl<T> RefUnwindSafe for SendFuture<T>where
T: RefUnwindSafe,
impl<T> Send for SendFuture<T>where
T: Send,
impl<T> Sync for SendFuture<T>
impl<T> UnwindSafe for SendFuture<T>where
T: UnwindSafe,
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