pub struct SnapshotChunk {
pub descriptor: ChunkDescriptor,
pub bytes: Vec<u8>,
}Expand description
Bounded encoded chunk produced alongside a manifest.
Fields§
§descriptor: ChunkDescriptor§bytes: Vec<u8>Implementations§
Source§impl SnapshotChunk
impl SnapshotChunk
Sourcepub fn decode_verified(
&self,
expected: &ChunkDescriptor,
max_uncompressed_bytes: usize,
) -> Result<Vec<SnapshotEntity>, BootstrapError>
pub fn decode_verified( &self, expected: &ChunkDescriptor, max_uncompressed_bytes: usize, ) -> Result<Vec<SnapshotEntity>, BootstrapError>
Verifies exact identity, size, hash, ordering, and record count before installation.
§Errors
Returns a typed error without exposing record payloads.
Trait Implementations§
Source§impl Clone for SnapshotChunk
impl Clone for SnapshotChunk
Source§fn clone(&self) -> SnapshotChunk
fn clone(&self) -> SnapshotChunk
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SnapshotChunk
impl Debug for SnapshotChunk
impl Eq for SnapshotChunk
Source§impl PartialEq for SnapshotChunk
impl PartialEq for SnapshotChunk
impl StructuralPartialEq for SnapshotChunk
Auto Trait Implementations§
impl Freeze for SnapshotChunk
impl RefUnwindSafe for SnapshotChunk
impl Send for SnapshotChunk
impl Sync for SnapshotChunk
impl Unpin for SnapshotChunk
impl UnsafeUnpin for SnapshotChunk
impl UnwindSafe for SnapshotChunk
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