pub struct ExtendedBlockHeader {
pub version: HardFork,
pub vote: u8,
pub timestamp: u64,
pub cumulative_difficulty: u128,
pub block_weight: usize,
pub long_term_weight: usize,
}Expand description
Extended header data of a block.
This contains various metadata of a block, but not the block blob itself.
Fields§
§version: HardForkThe block’s major version.
This is the same value as [monero_oxide::block::BlockHeader::hardfork_version].
vote: u8The block’s hard-fork vote.
This can’t be represented with HardFork as raw-votes can be out of the range of HardForks.
This is the same value as [monero_oxide::block::BlockHeader::hardfork_signal].
timestamp: u64The UNIX time at which the block was mined.
cumulative_difficulty: u128The total amount of coins mined in all blocks so far, including this block’s.
block_weight: usizeThe adjusted block size, in bytes.
long_term_weight: usizeThe long term block weight, based on the median weight of the preceding 100_000 blocks.
Trait Implementations§
Source§impl Clone for ExtendedBlockHeader
impl Clone for ExtendedBlockHeader
Source§fn clone(&self) -> ExtendedBlockHeader
fn clone(&self) -> ExtendedBlockHeader
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ExtendedBlockHeader
Source§impl Debug for ExtendedBlockHeader
impl Debug for ExtendedBlockHeader
Source§impl Default for ExtendedBlockHeader
impl Default for ExtendedBlockHeader
Source§fn default() -> ExtendedBlockHeader
fn default() -> ExtendedBlockHeader
impl Eq for ExtendedBlockHeader
Source§impl Hash for ExtendedBlockHeader
impl Hash for ExtendedBlockHeader
Source§impl Ord for ExtendedBlockHeader
impl Ord for ExtendedBlockHeader
Source§fn cmp(&self, other: &ExtendedBlockHeader) -> Ordering
fn cmp(&self, other: &ExtendedBlockHeader) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ExtendedBlockHeader
impl PartialEq for ExtendedBlockHeader
Source§impl PartialOrd for ExtendedBlockHeader
impl PartialOrd for ExtendedBlockHeader
impl StructuralPartialEq for ExtendedBlockHeader
Auto Trait Implementations§
impl Freeze for ExtendedBlockHeader
impl RefUnwindSafe for ExtendedBlockHeader
impl Send for ExtendedBlockHeader
impl Sync for ExtendedBlockHeader
impl Unpin for ExtendedBlockHeader
impl UnsafeUnpin for ExtendedBlockHeader
impl UnwindSafe for ExtendedBlockHeader
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 48 bytes