pub struct DataBlock {
pub index: u64,
pub value: Vec<u8>,
pub nodes: Vec<Node>,
}Expand description
Block of data to peer
Fields§
§index: u64Hypercore index
value: Vec<u8>Data block value in bytes
nodes: Vec<Node>Nodes of the merkle tree
Trait Implementations§
Source§impl CompactEncoding<DataBlock> for HypercoreState
impl CompactEncoding<DataBlock> for HypercoreState
impl StructuralPartialEq for DataBlock
Auto Trait Implementations§
impl Freeze for DataBlock
impl RefUnwindSafe for DataBlock
impl Send for DataBlock
impl Sync for DataBlock
impl Unpin for DataBlock
impl UnwindSafe for DataBlock
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