pub struct ParsedHeader {
pub inner: Header,
pub offset: usize,
pub hash: BlockHash,
pub path: PathBuf,
pub xor_mask: Option<[u8; 8]>,
}
Expand description
Points to the on-disk location where a block starts (and the header ends)
Fields§
§inner: Header
Consensus parsed bitcoin::Header
offset: usize
Byte offset from the beginning of the file
hash: BlockHash
This header’s block hash
path: PathBuf
Path of the BLK file
xor_mask: Option<[u8; 8]>
XOR mask of the BLK file
Trait Implementations§
Source§impl Clone for ParsedHeader
impl Clone for ParsedHeader
Source§fn clone(&self) -> ParsedHeader
fn clone(&self) -> ParsedHeader
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for ParsedHeader
impl RefUnwindSafe for ParsedHeader
impl Send for ParsedHeader
impl Sync for ParsedHeader
impl Unpin for ParsedHeader
impl UnwindSafe for ParsedHeader
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