pub enum Capture<E, T> {
Exit(E),
Trap(T),
}
Expand description
Capture represents the result of execution.
Variants§
Exit(E)
The machine has exited. It cannot be executed again.
Trap(T)
The machine has trapped. It is waiting for external information, and can be executed again.
Trait Implementations§
source§impl<E: PartialEq, T: PartialEq> PartialEq for Capture<E, T>
impl<E: PartialEq, T: PartialEq> PartialEq for Capture<E, T>
impl<E: Copy, T: Copy> Copy for Capture<E, T>
impl<E: Eq, T: Eq> Eq for Capture<E, T>
impl<E, T> StructuralEq for Capture<E, T>
impl<E, T> StructuralPartialEq for Capture<E, T>
Auto Trait Implementations§
impl<E, T> RefUnwindSafe for Capture<E, T>where E: RefUnwindSafe, T: RefUnwindSafe,
impl<E, T> Send for Capture<E, T>where E: Send, T: Send,
impl<E, T> Sync for Capture<E, T>where E: Sync, T: Sync,
impl<E, T> Unpin for Capture<E, T>where E: Unpin, T: 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