pub enum PitrTarget {
Latest,
Epoch(u64),
TimestampNanos(u64),
TransactionId(u64),
LogPosition(u64),
Hlc(HlcTimestamp),
}Variants§
Latest
Epoch(u64)
TimestampNanos(u64)
TransactionId(u64)
Restore through the commit of this exact transaction id, resolved
against the archive’s commit-point ledger (PitrCommitPoint).
Transaction ids are scoped by the source database’s open generation;
an id the ledger does not record (including archives written before
Stage 1G, whose ledger predates the field) fails closed.
LogPosition(u64)
Restore through the newest commit whose WAL record sequence (log
position) is at or below this position. Positions before the first
archived commit resolve to the base backup boundary; a position
above every archived commit resolves to PitrTarget::Latest’s
epoch. An archive whose ledger records no sequences at all (written
before Stage 1G) fails closed.
Hlc(HlcTimestamp)
Restore through the newest archived commit stamped at or before this
HLC (P0.5-X10). Commit points carry optional HLC fields; when absent,
unix_nanos is treated as physical_micros * 1000 for ordering.
Trait Implementations§
Source§impl Clone for PitrTarget
impl Clone for PitrTarget
Source§fn clone(&self) -> PitrTarget
fn clone(&self) -> PitrTarget
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for PitrTarget
Source§impl Debug for PitrTarget
impl Debug for PitrTarget
impl Eq for PitrTarget
Source§impl PartialEq for PitrTarget
impl PartialEq for PitrTarget
impl StructuralPartialEq for PitrTarget
Auto Trait Implementations§
impl Freeze for PitrTarget
impl RefUnwindSafe for PitrTarget
impl Send for PitrTarget
impl Sync for PitrTarget
impl Unpin for PitrTarget
impl UnsafeUnpin for PitrTarget
impl UnwindSafe for PitrTarget
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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