pub struct RecvTimeoutFuture { /* private fields */ }Expand description
Future returned by Ctx::recv_timeout; resolves to Some(v) for a received message
or None when the timeout fires (no message). Unlike RecvFuture, a committed
no-message read resolves the future rather than blocking the thread.
Trait Implementations§
Source§impl Future for RecvTimeoutFuture
impl Future for RecvTimeoutFuture
Auto Trait Implementations§
impl !RefUnwindSafe for RecvTimeoutFuture
impl !Send for RecvTimeoutFuture
impl !Sync for RecvTimeoutFuture
impl !UnwindSafe for RecvTimeoutFuture
impl Freeze for RecvTimeoutFuture
impl Unpin for RecvTimeoutFuture
impl UnsafeUnpin for RecvTimeoutFuture
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