pub struct PitrRecovery { /* private fields */ }Expand description
PITR recovery orchestrator
Implementations§
Source§impl PitrRecovery
impl PitrRecovery
Sourcepub fn new(target: RecoveryTarget) -> Self
pub fn new(target: RecoveryTarget) -> Self
Create a new PITR recovery
Sourcepub fn with_base_snapshot(self, snapshot: BaseSnapshot) -> Self
pub fn with_base_snapshot(self, snapshot: BaseSnapshot) -> Self
Set base snapshot
Sourcepub fn with_wal_segments(self, segments: Vec<WalSegment>) -> Self
pub fn with_wal_segments(self, segments: Vec<WalSegment>) -> Self
Add WAL segments for replay
Sourcepub fn stats(&self) -> &RecoveryStats
pub fn stats(&self) -> &RecoveryStats
Get recovery statistics
Sourcepub fn current_lsn(&self) -> Lsn
pub fn current_lsn(&self) -> Lsn
Get current recovery LSN
Auto Trait Implementations§
impl Freeze for PitrRecovery
impl RefUnwindSafe for PitrRecovery
impl Send for PitrRecovery
impl Sync for PitrRecovery
impl Unpin for PitrRecovery
impl UnsafeUnpin for PitrRecovery
impl UnwindSafe for PitrRecovery
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