pub struct ValidatedBlockHeader { /* private fields */ }
Expand description
A block header with validated proof of work and corresponding block hash.
Implementations§
Source§impl ValidatedBlockHeader
impl ValidatedBlockHeader
Sourcepub fn to_best_block(&self) -> BestBlock
pub fn to_best_block(&self) -> BestBlock
Returns the BestBlock
corresponding to this validated block header, which can be passed
into ChannelManager::new
as part of its ChainParameters
. Useful for ensuring that
the SpvClient
and ChannelManager
are initialized to the same block during a fresh
start.
Trait Implementations§
Source§impl Clone for ValidatedBlockHeader
impl Clone for ValidatedBlockHeader
Source§fn clone(&self) -> ValidatedBlockHeader
fn clone(&self) -> ValidatedBlockHeader
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 ValidatedBlockHeader
impl Debug for ValidatedBlockHeader
Source§impl Deref for ValidatedBlockHeader
impl Deref for ValidatedBlockHeader
Source§impl PartialEq for ValidatedBlockHeader
impl PartialEq for ValidatedBlockHeader
impl Copy for ValidatedBlockHeader
impl Eq for ValidatedBlockHeader
impl StructuralPartialEq for ValidatedBlockHeader
Auto Trait Implementations§
impl Freeze for ValidatedBlockHeader
impl RefUnwindSafe for ValidatedBlockHeader
impl Send for ValidatedBlockHeader
impl Sync for ValidatedBlockHeader
impl Unpin for ValidatedBlockHeader
impl UnwindSafe for ValidatedBlockHeader
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