pub struct RawBlock {
pub height: u32,
pub hash: [u8; 32],
pub data: Vec<u8>,
}Expand description
A raw block returned by BlockIterator.
Fields§
§height: u32Block height in the main chain.
hash: [u8; 32]Block hash in Bitcoin Core internal byte order (little-endian). Reverse the bytes before displaying or comparing with block explorers.
data: Vec<u8>Raw serialized block bytes, without the 8-byte magic + size prefix.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RawBlock
impl RefUnwindSafe for RawBlock
impl Send for RawBlock
impl Sync for RawBlock
impl Unpin for RawBlock
impl UnsafeUnpin for RawBlock
impl UnwindSafe for RawBlock
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