pub struct ChunkPlan {
pub chunk0_size: usize,
pub continuation_size: usize,
/* private fields */
}Expand description
How an object header’s messages divide between chunk 0 and one
continuation chunk, produced by ObjectHeader::plan_chunks and consumed
by ObjectHeader::encode_chunked.
Fields§
§chunk0_size: usizeBytes chunk 0 occupies, prefix and checksum included.
continuation_size: usizeBytes the continuation chunk occupies, signature and checksum included; zero when every message fits chunk 0.
Trait Implementations§
impl Copy for ChunkPlan
impl Eq for ChunkPlan
impl StructuralPartialEq for ChunkPlan
Auto Trait Implementations§
impl Freeze for ChunkPlan
impl RefUnwindSafe for ChunkPlan
impl Send for ChunkPlan
impl Sync for ChunkPlan
impl Unpin for ChunkPlan
impl UnsafeUnpin for ChunkPlan
impl UnwindSafe for ChunkPlan
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