pub enum Capture<E, T> {
Exit(E),
Trap(Box<T>),
}
Expand description
Capture represents the result of execution.
Variants§
Exit(E)
The machine has exited. It cannot be executed again.
Trap(Box<T>)
The machine has trapped. It is waiting for external information, and can be executed again.
Implementations§
Trait Implementations§
impl<E: Eq, T: Eq> Eq for Capture<E, T>
impl<E, T> StructuralPartialEq for Capture<E, T>
Auto Trait Implementations§
impl<E, T> Freeze for Capture<E, T>where
E: Freeze,
impl<E, T> RefUnwindSafe for Capture<E, T>where
E: RefUnwindSafe,
T: RefUnwindSafe,
impl<E, T> Send for Capture<E, T>
impl<E, T> Sync for Capture<E, T>
impl<E, T> Unpin for Capture<E, T>where
E: Unpin,
impl<E, T> UnwindSafe for Capture<E, T>where
E: UnwindSafe,
T: 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> TrapConsume<T> for T
impl<T> TrapConsume<T> for T
Source§type Rest = Infallible
type Rest = Infallible
Rest type.
Source§fn consume(self) -> Result<T, Infallible>
fn consume(self) -> Result<T, Infallible>
Consume
T
to get Rest
.