pub enum FetchBlockError {
SendError,
DatabaseOptFailed {
error: String,
},
RecvError,
UnknownHash,
}Expand description
Errors occuring when the client is fetching blocks 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.
UnknownHash
The hash is not a member of the chain of most work.
Trait Implementations§
Source§impl Debug for FetchBlockError
impl Debug for FetchBlockError
Source§impl Display for FetchBlockError
impl Display for FetchBlockError
Source§impl Error for FetchBlockError
impl Error for FetchBlockError
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 FetchBlockError
impl RefUnwindSafe for FetchBlockError
impl Send for FetchBlockError
impl Sync for FetchBlockError
impl Unpin for FetchBlockError
impl UnwindSafe for FetchBlockError
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