pub struct RecvFut<'a, T> { /* private fields */ }
Expand description
A future which allows asynchronously receiving a message.
Can be created via Receiver::recv_async
or Receiver::into_recv_async
.
Implementations§
source§impl<'a, T> RecvFut<'a, T>
impl<'a, T> RecvFut<'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 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<'a, T> FusedFuture for RecvFut<'a, T>
impl<'a, T> FusedFuture for RecvFut<'a, T>
source§fn is_terminated(&self) -> bool
fn is_terminated(&self) -> bool
Returns
true
if the underlying future should no longer be polled.Auto Trait Implementations§
impl<'a, T> Freeze for RecvFut<'a, T>
impl<'a, T> !RefUnwindSafe for RecvFut<'a, T>
impl<'a, T> Send for RecvFut<'a, T>where
T: Send,
impl<'a, T> Sync for RecvFut<'a, T>where
T: Send,
impl<'a, T> Unpin for RecvFut<'a, T>
impl<'a, T> !UnwindSafe for RecvFut<'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