pub enum OperationResult<T, E> {
Ok(T),
Retry(E),
Err(E),
}Variants§
Ok(T)
Contains the success value.
Retry(E)
Contains the error value if duration is exceeded.
Err(E)
Contains an error value to return immediately.
Trait Implementations§
Auto Trait Implementations§
impl<T, E> Freeze for OperationResult<T, E>
impl<T, E> RefUnwindSafe for OperationResult<T, E>where
T: RefUnwindSafe,
E: RefUnwindSafe,
impl<T, E> Send for OperationResult<T, E>
impl<T, E> Sync for OperationResult<T, E>
impl<T, E> Unpin for OperationResult<T, E>
impl<T, E> UnsafeUnpin for OperationResult<T, E>where
T: UnsafeUnpin,
E: UnsafeUnpin,
impl<T, E> UnwindSafe for OperationResult<T, E>where
T: UnwindSafe,
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