pub enum NodeError<H: Debug + Display, P: Debug + Display> {
HeaderDatabase(HeaderPersistenceError<H>),
PeerDatabase(PeerManagerError<P>),
}Expand description
Errors that prevent the node from running.
Variants§
HeaderDatabase(HeaderPersistenceError<H>)
The persistence layer experienced a critical error.
PeerDatabase(PeerManagerError<P>)
The persistence layer experienced a critical error.
Trait Implementations§
Source§impl<H: Debug + Display, P: Debug + Display> Error for NodeError<H, P>
impl<H: Debug + Display, P: Debug + Display> Error for NodeError<H, P>
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()
Auto Trait Implementations§
impl<H, P> Freeze for NodeError<H, P>
impl<H, P> RefUnwindSafe for NodeError<H, P>where
H: RefUnwindSafe,
P: RefUnwindSafe,
impl<H, P> Send for NodeError<H, P>
impl<H, P> Sync for NodeError<H, P>
impl<H, P> Unpin for NodeError<H, P>
impl<H, P> UnwindSafe for NodeError<H, P>where
H: UnwindSafe,
P: 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