pub struct Recv<'a, St: ?Sized> {
stream: &'a mut St,
}Expand description
Future returned by Receiver::recv() or UnboundedReceiver::recv().
Fields§
§stream: &'a mut StImplementations§
Trait Implementations§
Source§impl<St: ?Sized + FusedStream + Unpin> FusedFuture for Recv<'_, St>
impl<St: ?Sized + FusedStream + Unpin> FusedFuture for Recv<'_, St>
Source§fn is_terminated(&self) -> bool
fn is_terminated(&self) -> bool
Returns
true if the underlying future should no longer be polled.Source§impl<St: ?Sized + Stream + Unpin> Future for Recv<'_, St>
impl<St: ?Sized + Stream + Unpin> Future for Recv<'_, St>
impl<St: ?Sized + Unpin> Unpin for Recv<'_, St>
Auto Trait Implementations§
impl<'a, St> Freeze for Recv<'a, St>where
St: ?Sized,
impl<'a, St> RefUnwindSafe for Recv<'a, St>where
St: RefUnwindSafe + ?Sized,
impl<'a, St> Send for Recv<'a, St>
impl<'a, St> Sync for Recv<'a, St>
impl<'a, St> !UnwindSafe for Recv<'a, St>
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