pub enum FetchHeaderError {
SendError,
DatabaseOptFailed {
error: String,
},
RecvError,
UnknownHeight,
}Expand description
Errors occuring when the client is fetching headers from the node.
Variants§
SendError
The channel to the node was likely closed and dropped from memory. This implies the node is not running.
DatabaseOptFailed
The database operation failed while attempting to find the header.
RecvError
The channel to the client was likely closed by the node and dropped from memory.
UnknownHeight
The header at the requested height does not yet exist.
Trait Implementations§
Source§impl Debug for FetchHeaderError
impl Debug for FetchHeaderError
Source§impl Display for FetchHeaderError
impl Display for FetchHeaderError
Source§impl Error for FetchHeaderError
impl Error for FetchHeaderError
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 Freeze for FetchHeaderError
impl RefUnwindSafe for FetchHeaderError
impl Send for FetchHeaderError
impl Sync for FetchHeaderError
impl Unpin for FetchHeaderError
impl UnwindSafe for FetchHeaderError
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