pub struct BackupManifest {
pub version: u32,
pub segments: Vec<BackupSegment>,
}Expand description
Tracks the full backup chain for a database.
Fields§
§version: u32Manifest format version.
segments: Vec<BackupSegment>Ordered list of backup segments (full first, then incrementals).
Implementations§
Source§impl BackupManifest
impl BackupManifest
Sourcepub fn latest_full(&self) -> Option<&BackupSegment>
pub fn latest_full(&self) -> Option<&BackupSegment>
Returns the most recent full backup segment, if any.
Sourcepub fn incrementals_after(&self, epoch: EpochId) -> Vec<&BackupSegment>
pub fn incrementals_after(&self, epoch: EpochId) -> Vec<&BackupSegment>
Returns incremental segments after the given epoch, in order.
Sourcepub fn epoch_range(&self) -> Option<(EpochId, EpochId)>
pub fn epoch_range(&self) -> Option<(EpochId, EpochId)>
Returns the epoch range covered by this manifest.
Trait Implementations§
Source§impl Clone for BackupManifest
impl Clone for BackupManifest
Source§fn clone(&self) -> BackupManifest
fn clone(&self) -> BackupManifest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BackupManifest
impl Debug for BackupManifest
Source§impl Default for BackupManifest
impl Default for BackupManifest
Source§impl<'de> Deserialize<'de> for BackupManifest
impl<'de> Deserialize<'de> for BackupManifest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BackupManifest
impl RefUnwindSafe for BackupManifest
impl Send for BackupManifest
impl Sync for BackupManifest
impl Unpin for BackupManifest
impl UnsafeUnpin for BackupManifest
impl UnwindSafe for BackupManifest
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> 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>
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