pub enum SnapshotFormat {
Json,
Cbor,
MsgPack,
}Variants§
Implementations§
Source§impl SnapshotFormat
impl SnapshotFormat
pub fn write_shards<W, F, T>( &self, zw: &mut ZipDocumentWriter<W>, meta: &SnapshotShardMeta, get_shard_value: F, zstd_level: i32, ) -> Result<()>
pub fn read_shards<R, T>( &self, zr: &mut ZipDocumentReader<R>, ) -> Result<(SnapshotShardMeta, Vec<T>)>
pub fn for_each_shard<R, T, F>( &self, zr: &mut ZipDocumentReader<R>, on_shard: F, ) -> Result<SnapshotShardMeta>
pub fn write_parent_map<W, T>( &self, zw: &mut ZipDocumentWriter<W>, parent_map: &T, zstd_level: i32, ) -> Result<()>
pub fn read_parent_map<R, T>(&self, zr: &mut ZipDocumentReader<R>) -> Result<T>
Trait Implementations§
Source§impl Clone for SnapshotFormat
impl Clone for SnapshotFormat
Source§fn clone(&self) -> SnapshotFormat
fn clone(&self) -> SnapshotFormat
Returns a duplicate of the value. Read more
1.0.0 · 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 SnapshotFormat
impl Debug for SnapshotFormat
impl Copy for SnapshotFormat
Auto Trait Implementations§
impl Freeze for SnapshotFormat
impl RefUnwindSafe for SnapshotFormat
impl Send for SnapshotFormat
impl Sync for SnapshotFormat
impl Unpin for SnapshotFormat
impl UnwindSafe for SnapshotFormat
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more