Struct bdk_chain::ConfirmationHeightAnchor
source · Expand description
Fields§
§confirmation_height: u32
The exact confirmation height of the transaction.
It is assumed that this value is never larger than the height of the anchor block.
anchor_block: BlockId
The anchor block.
Trait Implementations§
source§impl Anchor for ConfirmationHeightAnchor
impl Anchor for ConfirmationHeightAnchor
source§fn anchor_block(&self) -> BlockId
fn anchor_block(&self) -> BlockId
Returns the
BlockId
that the associated blockchain data is “anchored” in.source§fn confirmation_height_upper_bound(&self) -> u32
fn confirmation_height_upper_bound(&self) -> u32
Get the upper bound of the chain data’s confirmation height. Read more
source§impl AnchorFromBlockPosition for ConfirmationHeightAnchor
impl AnchorFromBlockPosition for ConfirmationHeightAnchor
source§fn from_block_position(_block: &Block, block_id: BlockId, _tx_pos: usize) -> Self
fn from_block_position(_block: &Block, block_id: BlockId, _tx_pos: usize) -> Self
Construct the anchor from a given
block
, block height and tx_pos
within the block.source§impl Clone for ConfirmationHeightAnchor
impl Clone for ConfirmationHeightAnchor
source§fn clone(&self) -> ConfirmationHeightAnchor
fn clone(&self) -> ConfirmationHeightAnchor
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 ConfirmationHeightAnchor
impl Debug for ConfirmationHeightAnchor
source§impl Default for ConfirmationHeightAnchor
impl Default for ConfirmationHeightAnchor
source§fn default() -> ConfirmationHeightAnchor
fn default() -> ConfirmationHeightAnchor
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ConfirmationHeightAnchor
impl<'de> Deserialize<'de> for ConfirmationHeightAnchor
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for ConfirmationHeightAnchor
impl Hash for ConfirmationHeightAnchor
source§impl Ord for ConfirmationHeightAnchor
impl Ord for ConfirmationHeightAnchor
source§fn cmp(&self, other: &ConfirmationHeightAnchor) -> Ordering
fn cmp(&self, other: &ConfirmationHeightAnchor) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ConfirmationHeightAnchor> for ConfirmationHeightAnchor
impl PartialEq<ConfirmationHeightAnchor> for ConfirmationHeightAnchor
source§fn eq(&self, other: &ConfirmationHeightAnchor) -> bool
fn eq(&self, other: &ConfirmationHeightAnchor) -> bool
source§impl PartialOrd<ConfirmationHeightAnchor> for ConfirmationHeightAnchor
impl PartialOrd<ConfirmationHeightAnchor> for ConfirmationHeightAnchor
source§fn partial_cmp(&self, other: &ConfirmationHeightAnchor) -> Option<Ordering>
fn partial_cmp(&self, other: &ConfirmationHeightAnchor) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more