pub struct Readiness<'a, M = Local>where
M: Mode,{ /* private fields */ }Expand description
A wait for a registered source to be ready for an Interest, returned by
Registration::ready.
It completes once the runtime finds the source ready, or once a wait of the runtime fails. Dropping it before then gives up the wait. It fails on its first poll if the OS refuses to watch the source for the interest.
Trait Implementations§
Auto Trait Implementations§
impl<'a, M> Freeze for Readiness<'a, M>where
&'a Registration<M>: Freeze,
impl<'a, M> RefUnwindSafe for Readiness<'a, M>where
&'a Registration<M>: RefUnwindSafe,
impl<'a, M> Send for Readiness<'a, M>where
&'a Registration<M>: Send,
impl<'a, M> Sync for Readiness<'a, M>where
&'a Registration<M>: Sync,
impl<'a, M> Unpin for Readiness<'a, M>where
&'a Registration<M>: Unpin,
impl<'a, M> UnsafeUnpin for Readiness<'a, M>where
&'a Registration<M>: UnsafeUnpin,
impl<'a, M> UnwindSafe for Readiness<'a, M>where
&'a Registration<M>: 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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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