pub struct SnapshotExporter { /* private fields */ }Expand description
Snapshot exporter for instant database state exports
Implementations§
Source§impl SnapshotExporter
impl SnapshotExporter
Sourcepub fn new(
graph_path: &Path,
config: SnapshotExportConfig,
) -> NativeResult<Self>
pub fn new( graph_path: &Path, config: SnapshotExportConfig, ) -> NativeResult<Self>
Create a new snapshot exporter
Sourcepub fn export_snapshot(&mut self) -> NativeResult<SnapshotExportResult>
pub fn export_snapshot(&mut self) -> NativeResult<SnapshotExportResult>
Export snapshot with atomic operations
Sourcepub fn validate_snapshot_conditions(
&mut self,
) -> NativeResult<SnapshotValidationReport>
pub fn validate_snapshot_conditions( &mut self, ) -> NativeResult<SnapshotValidationReport>
Validate snapshot preconditions
Auto Trait Implementations§
impl Freeze for SnapshotExporter
impl RefUnwindSafe for SnapshotExporter
impl Send for SnapshotExporter
impl Sync for SnapshotExporter
impl Unpin for SnapshotExporter
impl UnwindSafe for SnapshotExporter
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> 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