Struct ckb_verification::BlockError
source · [−]pub struct BlockError { /* private fields */ }Expand description
Errors due the fact that the block rule is not respected.
Implementations
sourceimpl BlockError
impl BlockError
sourcepub fn kind(&self) -> BlockErrorKind
pub fn kind(&self) -> BlockErrorKind
Returns the general category of this error.
sourcepub fn downcast_ref<E>(&self) -> Option<&E> where
E: Display + Debug + Send + Sync + 'static,
pub fn downcast_ref<E>(&self) -> Option<&E> where
E: Display + Debug + Send + Sync + 'static,
Downcast this error object by reference.
sourcepub fn root_cause(&self) -> &(dyn Error + 'static)
pub fn root_cause(&self) -> &(dyn Error + 'static)
The lowest level cause of this error — this error’s cause’s cause’s cause etc.
Trait Implementations
sourceimpl Clone for BlockError
impl Clone for BlockError
sourcefn clone(&self) -> BlockError
fn clone(&self) -> BlockError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for BlockError
impl Debug for BlockError
sourceimpl Display for BlockError
impl Display for BlockError
sourceimpl Error for BlockError
impl Error for BlockError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<BlockError> for Error
impl From<BlockError> for Error
sourcefn from(error: BlockError) -> Self
fn from(error: BlockError) -> Self
Converts to this type from the input type.
sourceimpl From<BlockErrorKind> for BlockError
impl From<BlockErrorKind> for BlockError
sourcefn from(kind: BlockErrorKind) -> Self
fn from(kind: BlockErrorKind) -> Self
Converts to this type from the input type.
sourceimpl From<BlockTransactionsError> for BlockError
impl From<BlockTransactionsError> for BlockError
sourcefn from(error: BlockTransactionsError) -> Self
fn from(error: BlockTransactionsError) -> Self
Converts to this type from the input type.
sourceimpl From<CellbaseError> for BlockError
impl From<CellbaseError> for BlockError
sourcefn from(error: CellbaseError) -> Self
fn from(error: CellbaseError) -> Self
Converts to this type from the input type.
sourceimpl From<CommitError> for BlockError
impl From<CommitError> for BlockError
sourcefn from(error: CommitError) -> Self
fn from(error: CommitError) -> Self
Converts to this type from the input type.
sourceimpl From<UnclesError> for BlockError
impl From<UnclesError> for BlockError
sourcefn from(error: UnclesError) -> Self
fn from(error: UnclesError) -> Self
Converts to this type from the input type.
sourceimpl From<UnknownParentError> for BlockError
impl From<UnknownParentError> for BlockError
sourcefn from(error: UnknownParentError) -> Self
fn from(error: UnknownParentError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for BlockError
impl Send for BlockError
impl Sync for BlockError
impl Unpin for BlockError
impl !UnwindSafe for BlockError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more