pub struct Chunk {
pub address: Reference,
pub span: Span,
pub payload: Vec<u8>,
}Expand description
Content-addressed chunk: a span + payload pair whose address is the
BMT root over the chunk. Mirrors bee-js Chunk (cac.ts).
Fields§
§address: ReferenceBMT chunk address.
span: SpanSpan (8-byte little-endian payload length).
payload: Vec<u8>Raw payload (1..=4096 bytes).
Implementations§
Trait Implementations§
impl Eq for Chunk
impl StructuralPartialEq for Chunk
Auto Trait Implementations§
impl Freeze for Chunk
impl RefUnwindSafe for Chunk
impl Send for Chunk
impl Sync for Chunk
impl Unpin for Chunk
impl UnsafeUnpin for Chunk
impl UnwindSafe for Chunk
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