pub enum RateError<E1, E2> {
Recoverable(E1),
Unrecoverable(E2),
}Expand description
A type that allows you to distinguish between recoverable and unrecoverable errors
Variants§
Trait Implementations§
Source§impl<E1, E2> Error for RateError<E1, E2>
impl<E1, E2> Error for RateError<E1, E2>
1.30.0§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
impl<E1: Eq, E2: Eq> Eq for RateError<E1, E2>
impl<E1, E2> StructuralPartialEq for RateError<E1, E2>
Auto Trait Implementations§
impl<E1, E2> Freeze for RateError<E1, E2>
impl<E1, E2> RefUnwindSafe for RateError<E1, E2>where
E1: RefUnwindSafe,
E2: RefUnwindSafe,
impl<E1, E2> Send for RateError<E1, E2>
impl<E1, E2> Sync for RateError<E1, E2>
impl<E1, E2> Unpin for RateError<E1, E2>
impl<E1, E2> UnwindSafe for RateError<E1, E2>where
E1: UnwindSafe,
E2: UnwindSafe,
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more