pub enum Termination<E> {
Completed,
Error(E),
}Expand description
Represents the termination state of an operation, which can either be completed successfully or with an error.
Variants§
Completed
Indicates that the operation has completed successfully.
Error(E)
Indicates that the operation has completed with an error.
Trait Implementations§
Source§impl<E> Clone for Termination<E>where
E: Clone,
impl<E> Clone for Termination<E>where
E: Clone,
Source§impl<E> Debug for Termination<E>where
E: Debug,
impl<E> Debug for Termination<E>where
E: Debug,
Source§impl<E> PartialEq for Termination<E>where
E: PartialEq,
impl<E> PartialEq for Termination<E>where
E: PartialEq,
impl<E> Eq for Termination<E>where
E: PartialEq,
Auto Trait Implementations§
impl<E> Freeze for Termination<E>where
E: Freeze,
impl<E> RefUnwindSafe for Termination<E>where
E: RefUnwindSafe,
impl<E> Send for Termination<E>where
E: Send,
impl<E> Sync for Termination<E>where
E: Sync,
impl<E> Unpin for Termination<E>where
E: Unpin,
impl<E> UnwindSafe for Termination<E>where
E: 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