pub struct SnapshotImporter { /* private fields */ }Expand description
Snapshot importer for direct database restoration
Implementations§
Source§impl SnapshotImporter
impl SnapshotImporter
Sourcepub fn from_export_dir(
export_dir: &Path,
_target_path: &Path,
config: SnapshotImportConfig,
) -> NativeResult<Self>
pub fn from_export_dir( export_dir: &Path, _target_path: &Path, config: SnapshotImportConfig, ) -> NativeResult<Self>
Create snapshot importer from export directory
Sourcepub fn validate_import(&self) -> NativeResult<SnapshotImportValidationReport>
pub fn validate_import(&self) -> NativeResult<SnapshotImportValidationReport>
Validate import before performing operation
Sourcepub fn import(&self) -> NativeResult<SnapshotImportResult>
pub fn import(&self) -> NativeResult<SnapshotImportResult>
Perform snapshot import
Auto Trait Implementations§
impl Freeze for SnapshotImporter
impl RefUnwindSafe for SnapshotImporter
impl Send for SnapshotImporter
impl Sync for SnapshotImporter
impl Unpin for SnapshotImporter
impl UnwindSafe for SnapshotImporter
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