#[repr(C)]struct MetadataV0 {Show 13 fields
magic: u32,
version: u32,
best_block: BlockHash,
depth: u32,
validation_index: BlockHash,
alternative_tips: [BlockHash; 64],
assume_valid_index: u32,
fork_count: u32,
headers_file_size: usize,
fork_file_size: usize,
block_index_occupancy: usize,
index_capacity: usize,
checksum: DbCheckSum,
}Fields§
§magic: u32§version: u32§best_block: BlockHash§depth: u32§validation_index: BlockHash§alternative_tips: [BlockHash; 64]§assume_valid_index: u32§fork_count: u32§headers_file_size: usize§fork_file_size: usize§block_index_occupancy: usize§index_capacity: usize§checksum: DbCheckSumTrait Implementations§
Source§impl Clone for MetadataV0
impl Clone for MetadataV0
Source§fn clone(&self) -> MetadataV0
fn clone(&self) -> MetadataV0
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 MetadataV0
impl Debug for MetadataV0
Source§impl From<MetadataV0> for Metadata
impl From<MetadataV0> for Metadata
Source§fn from(value: MetadataV0) -> Self
fn from(value: MetadataV0) -> Self
Converts to this type from the input type.
impl Copy for MetadataV0
Auto Trait Implementations§
impl Freeze for MetadataV0
impl RefUnwindSafe for MetadataV0
impl Send for MetadataV0
impl Sync for MetadataV0
impl Unpin for MetadataV0
impl UnwindSafe for MetadataV0
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