Struct bdk_chain::local_chain::AlterCheckPointError
source · pub struct AlterCheckPointError {
pub height: u32,
pub original_hash: BlockHash,
pub update_hash: Option<BlockHash>,
}
Expand description
Represents a failure when trying to insert/remove a checkpoint to/from LocalChain
.
Fields§
§height: u32
The checkpoint’s height.
original_hash: BlockHash
The original checkpoint’s block hash which cannot be replaced/removed.
update_hash: Option<BlockHash>
The attempted update to the original_block
hash.
Trait Implementations§
source§impl Clone for AlterCheckPointError
impl Clone for AlterCheckPointError
source§fn clone(&self) -> AlterCheckPointError
fn clone(&self) -> AlterCheckPointError
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 AlterCheckPointError
impl Debug for AlterCheckPointError
source§impl Display for AlterCheckPointError
impl Display for AlterCheckPointError
source§impl Error for AlterCheckPointError
impl Error for AlterCheckPointError
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 PartialEq for AlterCheckPointError
impl PartialEq for AlterCheckPointError
source§fn eq(&self, other: &AlterCheckPointError) -> bool
fn eq(&self, other: &AlterCheckPointError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AlterCheckPointError
Auto Trait Implementations§
impl Freeze for AlterCheckPointError
impl RefUnwindSafe for AlterCheckPointError
impl Send for AlterCheckPointError
impl Sync for AlterCheckPointError
impl Unpin for AlterCheckPointError
impl UnwindSafe for AlterCheckPointError
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