pub struct BackupVerifier { /* private fields */ }
Expand description
Backup verification system for ensuring backup integrity and restorability
Implementations§
Source§impl BackupVerifier
impl BackupVerifier
pub fn new(config: BackupConfig, db_pool: Arc<PgPool>) -> Self
Sourcepub async fn initialize(&self) -> Result<()>
pub async fn initialize(&self) -> Result<()>
Initialize the backup verification system
Sourcepub async fn verify_backup(
&self,
backup: &BackupMetadata,
) -> Result<VerificationResult>
pub async fn verify_backup( &self, backup: &BackupMetadata, ) -> Result<VerificationResult>
Verify a specific backup’s integrity and restorability
Sourcepub async fn verify_all_backups(&self) -> Result<Vec<VerificationResult>>
pub async fn verify_all_backups(&self) -> Result<Vec<VerificationResult>>
Verify all backups in the system
Sourcepub async fn run_scheduled_verification(&self) -> Result<u32>
pub async fn run_scheduled_verification(&self) -> Result<u32>
Run automated verification based on schedule
Sourcepub async fn get_verification_stats(&self) -> VerificationStats
pub async fn get_verification_stats(&self) -> VerificationStats
Get verification statistics
Sourcepub async fn get_verification_history(
&self,
backup_id: &str,
) -> Result<Vec<VerificationResult>>
pub async fn get_verification_history( &self, backup_id: &str, ) -> Result<Vec<VerificationResult>>
Get verification history for a specific backup
Auto Trait Implementations§
impl Freeze for BackupVerifier
impl !RefUnwindSafe for BackupVerifier
impl Send for BackupVerifier
impl Sync for BackupVerifier
impl Unpin for BackupVerifier
impl !UnwindSafe for BackupVerifier
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> 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