pub struct SnapshotWriter { /* private fields */ }Implementations§
Source§impl SnapshotWriter
impl SnapshotWriter
pub fn new() -> Self
pub fn with_compression(self, codec: CompressionCodec) -> Self
pub fn with_encryption(self, key: EncryptionKey) -> Self
pub fn write_to_file<P: AsRef<Path>>( &self, snapshot: &PackedSnapshot, path: P, ) -> Result<()>
pub fn write_to_bytes(&self, snapshot: &PackedSnapshot) -> Result<Vec<u8>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SnapshotWriter
impl RefUnwindSafe for SnapshotWriter
impl Send for SnapshotWriter
impl Sync for SnapshotWriter
impl Unpin for SnapshotWriter
impl UnwindSafe for SnapshotWriter
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