Struct ckb_verification::BlockVersionError 
source · pub struct BlockVersionError {
    pub expected: Version,
    pub actual: Version,
}Expand description
The block version is unexpected.
Fields§
§expected: VersionThe expected block version.
actual: VersionThe actual block version.
Trait Implementations§
source§impl Clone for BlockVersionError
 
impl Clone for BlockVersionError
source§fn clone(&self) -> BlockVersionError
 
fn clone(&self) -> BlockVersionError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moresource§impl Debug for BlockVersionError
 
impl Debug for BlockVersionError
source§impl Display for BlockVersionError
 
impl Display for BlockVersionError
source§impl Error for BlockVersionError
 
impl Error for BlockVersionError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
 
fn source(&self) -> Option<&(dyn Error + 'static)>
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<BlockVersionError> for Error
 
impl From<BlockVersionError> for Error
source§fn from(error: BlockVersionError) -> Self
 
fn from(error: BlockVersionError) -> Self
Converts to this type from the input type.
source§impl From<BlockVersionError> for HeaderError
 
impl From<BlockVersionError> for HeaderError
source§fn from(error: BlockVersionError) -> Self
 
fn from(error: BlockVersionError) -> Self
Converts to this type from the input type.
source§impl PartialEq<BlockVersionError> for BlockVersionError
 
impl PartialEq<BlockVersionError> for BlockVersionError
source§fn eq(&self, other: &BlockVersionError) -> bool
 
fn eq(&self, other: &BlockVersionError) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.impl Eq for BlockVersionError
impl StructuralEq for BlockVersionError
impl StructuralPartialEq for BlockVersionError
Auto Trait Implementations§
impl RefUnwindSafe for BlockVersionError
impl Send for BlockVersionError
impl Sync for BlockVersionError
impl Unpin for BlockVersionError
impl UnwindSafe for BlockVersionError
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