pub enum BaoChunk {
Parent {
is_root: bool,
right: bool,
left: bool,
node: TreeNode,
},
Leaf {
size: usize,
is_root: bool,
start_chunk: ChunkNum,
},
}
Expand description
A chunk describeds what to read or write next
Variants§
Parent
Fields
expect a 64 byte parent node.
To validate, use parent_cv using the is_root value
Leaf
Fields
expect data of size size
To validate, use hash_block using the is_root and start_chunk values
Implementations§
Trait Implementations§
source§impl PartialEq<BaoChunk> for BaoChunk
impl PartialEq<BaoChunk> for BaoChunk
impl Copy for BaoChunk
impl Eq for BaoChunk
impl StructuralEq for BaoChunk
impl StructuralPartialEq for BaoChunk
Auto Trait Implementations§
impl RefUnwindSafe for BaoChunk
impl Send for BaoChunk
impl Sync for BaoChunk
impl Unpin for BaoChunk
impl UnwindSafe for BaoChunk
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