pub enum Execution<E, R = ()> {
Failed(E),
Completed(R),
Skipped,
}
Variants§
Implementations§
Trait Implementations§
Source§impl<E, R> FromResidual<Option<Infallible>> for Execution<E, R>
impl<E, R> FromResidual<Option<Infallible>> for Execution<E, R>
Source§fn from_residual(residual: Option<Infallible>) -> Self
fn from_residual(residual: Option<Infallible>) -> Self
🔬This is a nightly-only experimental API. (
try_trait_v2
)Constructs the type from a compatible
Residual
type. Read moreSource§impl<E1: Into<E2>, E2, R> FromResidual<Result<Infallible, E1>> for Execution<E2, R>
impl<E1: Into<E2>, E2, R> FromResidual<Result<Infallible, E1>> for Execution<E2, R>
Source§fn from_residual(residual: Result<Infallible, E1>) -> Self
fn from_residual(residual: Result<Infallible, E1>) -> Self
🔬This is a nightly-only experimental API. (
try_trait_v2
)Constructs the type from a compatible
Residual
type. Read moreSource§impl<E, R> FromResidual for Execution<E, R>
impl<E, R> FromResidual for Execution<E, R>
Source§impl<E, R> Try for Execution<E, R>
impl<E, R> Try for Execution<E, R>
Source§type Output = R
type Output = R
🔬This is a nightly-only experimental API. (
try_trait_v2
)The type of the value produced by
?
when not short-circuiting.Source§type Residual = Skip<E>
type Residual = Skip<E>
🔬This is a nightly-only experimental API. (
try_trait_v2
)The type of the value passed to
FromResidual::from_residual
as part of ?
when short-circuiting. Read moreSource§fn from_output(output: Self::Output) -> Self
fn from_output(output: Self::Output) -> Self
🔬This is a nightly-only experimental API. (
try_trait_v2
)Constructs the type from its
Output
type. Read moreSource§fn branch(self) -> ControlFlow<Self::Residual, Self::Output>
fn branch(self) -> ControlFlow<Self::Residual, Self::Output>
🔬This is a nightly-only experimental API. (
try_trait_v2
)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 moreAuto Trait Implementations§
impl<E, R> Freeze for Execution<E, R>
impl<E, R> RefUnwindSafe for Execution<E, R>where
E: RefUnwindSafe,
R: RefUnwindSafe,
impl<E, R> Send for Execution<E, R>
impl<E, R> Sync for Execution<E, R>
impl<E, R> Unpin for Execution<E, R>
impl<E, R> UnwindSafe for Execution<E, R>where
E: UnwindSafe,
R: 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