pub struct Ready<T>(_);
🔬This is a nightly-only experimental API. (
poll_ready
#89780)Expand description
Extracts the successful type of a Poll<T>
.
See Poll::ready
for details.
Trait Implementations§
source§impl<T> FromResidual<<Ready<T> as Try>::Residual> for Ready<T>
impl<T> FromResidual<<Ready<T> as Try>::Residual> for Ready<T>
source§fn from_residual(residual: Ready<Infallible>) -> Ready<T>
fn from_residual(residual: Ready<Infallible>) -> Ready<T>
🔬This is a nightly-only experimental API. (
try_trait_v2
#84277)Constructs the type from a compatible
Residual
type. Read moresource§impl<T> FromResidual<Ready<Infallible>> for Poll<T>
impl<T> FromResidual<Ready<Infallible>> for Poll<T>
source§fn from_residual(residual: Ready<Infallible>) -> Poll<T>
fn from_residual(residual: Ready<Infallible>) -> Poll<T>
🔬This is a nightly-only experimental API. (
try_trait_v2
#84277)Constructs the type from a compatible
Residual
type. Read moresource§impl<T> Try for Ready<T>
impl<T> Try for Ready<T>
§type Output = T
type Output = T
🔬This is a nightly-only experimental API. (
try_trait_v2
#84277)The type of the value produced by
?
when not short-circuiting.§type Residual = Ready<Infallible>
type Residual = Ready<Infallible>
🔬This is a nightly-only experimental API. (
try_trait_v2
#84277)The type of the value passed to
FromResidual::from_residual
as part of ?
when short-circuiting. Read moresource§fn from_output(output: <Ready<T> as Try>::Output) -> Ready<T>
fn from_output(output: <Ready<T> as Try>::Output) -> Ready<T>
🔬This is a nightly-only experimental API. (
try_trait_v2
#84277)Constructs the type from its
Output
type. Read moresource§fn branch(
self
) -> ControlFlow<<Ready<T> as Try>::Residual, <Ready<T> as Try>::Output>
fn branch(
self
) -> ControlFlow<<Ready<T> as Try>::Residual, <Ready<T> as Try>::Output>
🔬This is a nightly-only experimental API. (
try_trait_v2
#84277)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