pub struct DataHash {
pub index: u64,
pub nodes: Vec<Node>,
}
Expand description
Data hash to peer
Fields§
§index: u64
Hypercore index
nodes: Vec<Node>
TODO: document
Trait Implementations§
source§impl CompactEncoding<DataHash> for HypercoreState
impl CompactEncoding<DataHash> for HypercoreState
source§impl PartialEq for DataHash
impl PartialEq for DataHash
impl StructuralPartialEq for DataHash
Auto Trait Implementations§
impl Freeze for DataHash
impl RefUnwindSafe for DataHash
impl Send for DataHash
impl Sync for DataHash
impl Unpin for DataHash
impl UnwindSafe for DataHash
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)