pub struct RecvFuture<T> { /* private fields */ }
Expand description
A future that allows asynchronously receiving a message. This future will resolve to a message when a message is available on the channel, or to an error if the channel is closed.
Implementations§
Source§impl<T> RecvFuture<T>
impl<T> RecvFuture<T>
Sourcepub fn is_closed(&self) -> bool
pub fn is_closed(&self) -> bool
See Receiver::is_closed
.
Sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
See Receiver::is_empty
.
Sourcepub fn is_full(&self) -> bool
pub fn is_full(&self) -> bool
See Receiver::is_full
.
Sourcepub fn len(&self) -> usize
pub fn len(&self) -> usize
See Receiver::len
.
Sourcepub fn capacity(&self) -> Option<usize>
pub fn capacity(&self) -> Option<usize>
See Receiver::capacity
.
Trait Implementations§
Source§impl<T: Debug> Debug for RecvFuture<T>
impl<T: Debug> Debug for RecvFuture<T>
Source§impl<T> Drop for RecvFuture<T>
impl<T> Drop for RecvFuture<T>
Source§impl<T> Future for RecvFuture<T>
impl<T> Future for RecvFuture<T>
Auto Trait Implementations§
impl<T> Freeze for RecvFuture<T>
impl<T> RefUnwindSafe for RecvFuture<T>
impl<T> Send for RecvFuture<T>where
T: Send,
impl<T> Sync for RecvFuture<T>where
T: Send,
impl<T> Unpin for RecvFuture<T>
impl<T> UnwindSafe for RecvFuture<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