pub struct PackedWriter { /* private fields */ }
Expand description
A packed snapshot writer. This writes snapshots to a single concatenated file.
The file format is very simple and consists of three parts: [Concatenated chunk data] [manifest as RLP] [manifest start offset (8 bytes little-endian)]
The manifest contains all the same information as a standard ManifestData
,
but also maps chunk hashes to their lengths and offsets in the file
for easy reading.
Implementations
sourceimpl PackedWriter
impl PackedWriter
Trait Implementations
sourceimpl SnapshotWriter for PackedWriter
impl SnapshotWriter for PackedWriter
Auto Trait Implementations
impl RefUnwindSafe for PackedWriter
impl Send for PackedWriter
impl Sync for PackedWriter
impl Unpin for PackedWriter
impl UnwindSafe for PackedWriter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more