pub struct DisasterRecoveryManager { /* private fields */ }Expand description
Comprehensive disaster recovery system for database and infrastructure
Implementations§
Source§impl DisasterRecoveryManager
impl DisasterRecoveryManager
pub fn new(config: BackupConfig, db_pool: Arc<PgPool>) -> Self
Sourcepub async fn initialize(&self) -> Result<()>
pub async fn initialize(&self) -> Result<()>
Initialize the disaster recovery system
Sourcepub async fn assess_disaster(
&self,
disaster_type: DisasterType,
details: String,
) -> Result<DisasterRecoveryPlan>
pub async fn assess_disaster( &self, disaster_type: DisasterType, details: String, ) -> Result<DisasterRecoveryPlan>
Detect and assess a potential disaster
Sourcepub async fn execute_disaster_recovery(
&self,
plan: DisasterRecoveryPlan,
) -> Result<()>
pub async fn execute_disaster_recovery( &self, plan: DisasterRecoveryPlan, ) -> Result<()>
Execute disaster recovery plan
Sourcepub async fn test_disaster_recovery(
&self,
disaster_type: DisasterType,
) -> Result<DisasterRecoveryTest>
pub async fn test_disaster_recovery( &self, disaster_type: DisasterType, ) -> Result<DisasterRecoveryTest>
Test disaster recovery procedures
Sourcepub async fn get_dr_status(&self) -> DisasterRecoveryStatus
pub async fn get_dr_status(&self) -> DisasterRecoveryStatus
Get current disaster recovery status
Sourcepub async fn cancel_disaster_recovery(&self) -> Result<()>
pub async fn cancel_disaster_recovery(&self) -> Result<()>
Cancel ongoing disaster recovery
Sourcepub async fn generate_dr_documentation(&self) -> Result<String>
pub async fn generate_dr_documentation(&self) -> Result<String>
Generate disaster recovery documentation
Auto Trait Implementations§
impl Freeze for DisasterRecoveryManager
impl !RefUnwindSafe for DisasterRecoveryManager
impl Send for DisasterRecoveryManager
impl Sync for DisasterRecoveryManager
impl Unpin for DisasterRecoveryManager
impl !UnwindSafe for DisasterRecoveryManager
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