pub struct Ready<T>(_);
Expand description
Extracts the successful type of a Poll<T>
.
See Poll::ready
for details.
Trait Implementations
sourceimpl<T> FromResidual<<Ready<T> as Try>::Residual> for Ready<T>
impl<T> FromResidual<<Ready<T> as Try>::Residual> for Ready<T>
sourcefn from_residual(residual: Ready<Infallible>) -> Self
fn from_residual(residual: Ready<Infallible>) -> Self
Constructs the type from a compatible Residual
type. Read more
sourceimpl<T> FromResidual<Ready<Infallible>> for Poll<T>
impl<T> FromResidual<Ready<Infallible>> for Poll<T>
sourcefn from_residual(residual: Ready<Infallible>) -> Self
fn from_residual(residual: Ready<Infallible>) -> Self
Constructs the type from a compatible Residual
type. Read more
sourceimpl<T> Try for Ready<T>
impl<T> Try for Ready<T>
type Residual = Ready<Infallible>
type Residual = Ready<Infallible>
The type of the value passed to FromResidual::from_residual
as part of ?
when short-circuiting. Read more
sourcefn from_output(output: Self::Output) -> Self
fn from_output(output: Self::Output) -> Self
Constructs the type from its Output
type. Read more
sourcefn branch(self) -> ControlFlow<Self::Residual, Self::Output>
fn branch(self) -> ControlFlow<Self::Residual, Self::Output>
Used in ?
to decide whether the operator should produce a value
(because this returned ControlFlow::Continue
)
or propagate a value back to the caller
(because this returned ControlFlow::Break
). Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for Ready<T> where
T: RefUnwindSafe,
impl<T> Send for Ready<T> where
T: Send,
impl<T> Sync for Ready<T> where
T: Sync,
impl<T> Unpin for Ready<T> where
T: Unpin,
impl<T> UnwindSafe for Ready<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more