pub struct FatalError { /* private fields */ }
Expand description
An error that is not expected to be resolved by retrying the operation.
See OperationError
for more information.
Implementations§
Source§impl FatalError
impl FatalError
pub fn new( err: impl Error + Send + Sync + 'static, strategy: FatalStrategy, ) -> Self
pub fn from_anyhow(err: Error, strategy: FatalStrategy) -> Self
pub fn from_str(err: &str, strategy: FatalStrategy) -> Self
Trait Implementations§
Source§impl Debug for FatalError
impl Debug for FatalError
Source§impl<E> From<E> for FatalError
impl<E> From<E> for FatalError
Source§impl From<FatalError> for OperationError
impl From<FatalError> for OperationError
Source§fn from(value: FatalError) -> Self
fn from(value: FatalError) -> Self
Converts to this type from the input type.
Source§impl<T> From<FatalError> for Result<T>
impl<T> From<FatalError> for Result<T>
Source§fn from(value: FatalError) -> Self
fn from(value: FatalError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FatalError
impl RefUnwindSafe for FatalError
impl Send for FatalError
impl Sync for FatalError
impl Unpin for FatalError
impl UnwindSafe for FatalError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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