pub enum BlockError {
BlockExists(String),
Crate(&'static str, String),
Message(String),
TransactionError(TransactionError),
InvalidBlockNumber(u32),
InvalidParent(String, String),
IrrelevantBlock(String),
}Variants§
BlockExists(String)
Crate(&'static str, String)
Message(String)
TransactionError(TransactionError)
InvalidBlockNumber(u32)
InvalidParent(String, String)
IrrelevantBlock(String)
Trait Implementations§
Source§impl Debug for BlockError
impl Debug for BlockError
Source§impl Display for BlockError
impl Display for BlockError
Source§impl Error for BlockError
impl Error for BlockError
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 From<BlockError> for ConsensusError
impl From<BlockError> for ConsensusError
Source§fn from(error: BlockError) -> Self
fn from(error: BlockError) -> Self
Converts to this type from the input type.
Source§impl From<BlockError> for RpcError
impl From<BlockError> for RpcError
Source§fn from(error: BlockError) -> Self
fn from(error: BlockError) -> Self
Converts to this type from the input type.
Source§impl From<BlockError> for SendError
impl From<BlockError> for SendError
Source§fn from(error: BlockError) -> Self
fn from(error: BlockError) -> Self
Converts to this type from the input type.
Source§impl From<BlockError> for ServerError
impl From<BlockError> for ServerError
Source§fn from(error: BlockError) -> Self
fn from(error: BlockError) -> Self
Converts to this type from the input type.
Source§impl From<BlockError> for StorageError
impl From<BlockError> for StorageError
Source§fn from(error: BlockError) -> Self
fn from(error: BlockError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for BlockError
impl From<Error> for BlockError
Source§impl From<TransactionError> for BlockError
impl From<TransactionError> for BlockError
Source§fn from(error: TransactionError) -> Self
fn from(error: TransactionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BlockError
impl RefUnwindSafe for BlockError
impl Send for BlockError
impl Sync for BlockError
impl Unpin for BlockError
impl UnwindSafe for BlockError
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