pub enum StashError<E: Error> {
Connectivity(E),
InternalInconsistency(StashInconsistency),
}
Variants§
Connectivity(E)
Connectivity errors which may be recoverable and temporary.
InternalInconsistency(StashInconsistency)
Permanent errors caused by bugs in the business logic of this library. Must be reported to LNP/BP Standards Association.
Trait Implementations§
Source§impl<E: Error> Display for StashError<E>
impl<E: Error> Display for StashError<E>
Source§impl<E: Error> Error for StashError<E>
impl<E: Error> Error for StashError<E>
1.30.0 · Source§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 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl<E: Error> From<StashError<E>> for String
impl<E: Error> From<StashError<E>> for String
Source§fn from(err: StashError<E>) -> Self
fn from(err: StashError<E>) -> Self
Converts to this type from the input type.
Source§impl<E1: Error, E2> From<StashError<E1>> for InventoryError<E2>
impl<E1: Error, E2> From<StashError<E1>> for InventoryError<E2>
Source§fn from(err: StashError<E1>) -> Self
fn from(err: StashError<E1>) -> Self
Converts to this type from the input type.
Source§impl<E1: Error, E2: Error> From<StashError<E2>> for ConsignerError<E1, E2>
impl<E1: Error, E2: Error> From<StashError<E2>> for ConsignerError<E1, E2>
Source§fn from(v: StashError<E2>) -> Self
fn from(v: StashError<E2>) -> Self
Converts to this type from the input type.
Source§impl<E: Error> From<StashInconsistency> for StashError<E>
impl<E: Error> From<StashInconsistency> for StashError<E>
Source§fn from(v: StashInconsistency) -> Self
fn from(v: StashInconsistency) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<E> Freeze for StashError<E>where
E: Freeze,
impl<E> RefUnwindSafe for StashError<E>where
E: RefUnwindSafe,
impl<E> Send for StashError<E>where
E: Send,
impl<E> Sync for StashError<E>where
E: Sync,
impl<E> Unpin for StashError<E>where
E: Unpin,
impl<E> UnwindSafe for StashError<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