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
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
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more