pub struct DataBlock {
pub index: u64,
pub value: Vec<u8>,
pub nodes: Vec<Node>,
}
Expand description
Block of data to peer
Fields§
§index: u64
Hypercore index
value: Vec<u8>
Data block value in bytes
nodes: Vec<Node>
TODO: document
Trait Implementations§
source§impl CompactEncoding<DataBlock> for HypercoreState
impl CompactEncoding<DataBlock> for HypercoreState
source§impl PartialEq for DataBlock
impl PartialEq for DataBlock
impl StructuralPartialEq for DataBlock
Auto Trait Implementations§
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