pub struct LocalFileDataStoreMaintenance { /* private fields */ }Implementations§
Source§impl LocalFileDataStoreMaintenance
impl LocalFileDataStoreMaintenance
Sourcepub fn open(root: impl Into<PathBuf>) -> Result<Self, MaintenanceError>
pub fn open(root: impl Into<PathBuf>) -> Result<Self, MaintenanceError>
Opens maintenance for an existing host-owned store root.
§Errors
Returns MaintenanceError when the root cannot be created or locked.
Trait Implementations§
Source§impl DataStoreMaintenance for LocalFileDataStoreMaintenance
impl DataStoreMaintenance for LocalFileDataStoreMaintenance
Source§fn prune(
&mut self,
policy: &RetentionPolicy,
as_of: &str,
) -> Result<MaintenanceEvidence, MaintenanceError>
fn prune( &mut self, policy: &RetentionPolicy, as_of: &str, ) -> Result<MaintenanceEvidence, MaintenanceError>
Prunes records under host policy with required
as_of (FR-002/FR-003). Read moreSource§fn backup(
&mut self,
destination: &Path,
as_of: &str,
) -> Result<MaintenanceEvidence, MaintenanceError>
fn backup( &mut self, destination: &Path, as_of: &str, ) -> Result<MaintenanceEvidence, MaintenanceError>
Writes a verified zip backup to
destination (FR-004/FR-006/FR-007). Read moreSource§fn restore(
&mut self,
archive: &Path,
as_of: &str,
) -> Result<MaintenanceEvidence, MaintenanceError>
fn restore( &mut self, archive: &Path, as_of: &str, ) -> Result<MaintenanceEvidence, MaintenanceError>
Verifies an archive and atomically replaces the store root (FR-005/FR-008). Read more
Source§impl DataStoreMigration for LocalFileDataStoreMaintenance
impl DataStoreMigration for LocalFileDataStoreMaintenance
Source§fn migrate_v1_to_v2(
&mut self,
backup_destination: &Path,
as_of: &str,
) -> Result<MigrationReport, MigrationError>
fn migrate_v1_to_v2( &mut self, backup_destination: &Path, as_of: &str, ) -> Result<MigrationReport, MigrationError>
Migrates a verified v1 root to v2 only after a host-directed backup and
complete candidate verification have succeeded. Read more
Source§impl Drop for LocalFileDataStoreMaintenance
impl Drop for LocalFileDataStoreMaintenance
Auto Trait Implementations§
impl Freeze for LocalFileDataStoreMaintenance
impl RefUnwindSafe for LocalFileDataStoreMaintenance
impl Send for LocalFileDataStoreMaintenance
impl Sync for LocalFileDataStoreMaintenance
impl Unpin for LocalFileDataStoreMaintenance
impl UnsafeUnpin for LocalFileDataStoreMaintenance
impl UnwindSafe for LocalFileDataStoreMaintenance
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> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
Source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self file descriptor.Source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
Source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: Sized + AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: Sized + AsFilelike,
Set the “status” flags for the
self file descriptor. Read moreSource§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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