pub enum RankedError<R, E>where
R: TransientError<E>,{
Transient(R),
Error(E),
}Expand description
An error type consisting of a transient (non-critical) error and an unignorable error.
Variants§
Transient(R)
This error can be ignored if the allowed by the caller code. Such errors should
be acknowledged (see TransientError::acknowledge before being dropped, but
aren’t necessarily required to be.
Error(E)
This error cannot be ignored and should be propagated. The caller should never suppress values in this alternative.
Trait Implementations§
Source§impl<R, E: Debug> Debug for RankedError<R, E>where
R: TransientError<E> + Debug,
impl<R, E: Debug> Debug for RankedError<R, E>where
R: TransientError<E> + Debug,
Source§impl<R, E> ToRanked for RankedError<R, E>
impl<R, E> ToRanked for RankedError<R, E>
Auto Trait Implementations§
impl<R, E> Freeze for RankedError<R, E>
impl<R, E> RefUnwindSafe for RankedError<R, E>where
R: RefUnwindSafe,
E: RefUnwindSafe,
impl<R, E> Send for RankedError<R, E>where
E: Send,
impl<R, E> Sync for RankedError<R, E>where
E: Sync,
impl<R, E> Unpin for RankedError<R, E>
impl<R, E> UnsafeUnpin for RankedError<R, E>where
R: UnsafeUnpin,
E: UnsafeUnpin,
impl<R, E> UnwindSafe for RankedError<R, E>where
R: UnwindSafe,
E: UnwindSafe,
Blanket Implementations§
impl<T> AsyncFriendly for T
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