Struct Timeline
pub struct Timeline {
pub id: String,
pub created_ms: u64,
pub segments: Vec<Segment>,
pub checkpoints: Vec<CheckpointEntry>,
pub stores: Vec<StoreChunk>,
pub archives: Vec<ArchiveEntry>,
pub points: Vec<Point>,
}Expand description
One history of one data directory. A directory restored from a backup starts a new one.
Fields§
§id: String§created_ms: u64§segments: Vec<Segment>§checkpoints: Vec<CheckpointEntry>§stores: Vec<StoreChunk>§archives: Vec<ArchiveEntry>§points: Vec<Point>Implementations§
§impl Timeline
impl Timeline
pub fn uploaded_through(&self) -> u64
pub fn uploaded_through(&self) -> u64
The last batch uploaded.
pub fn keys(&self) -> impl Iterator<Item = String> + '_
pub fn plan(&self, shards: u32, point: Point) -> Result<Plan, String>
pub fn plan(&self, shards: u32, point: Point) -> Result<Plan, String>
What restoring point needs, with the newest usable checkpoint of
each shard.
pub fn plan_with(
&self,
point: Point,
chosen: &[Option<&CheckpointEntry>],
) -> Result<Plan, String>
pub fn plan_with( &self, point: Point, chosen: &[Option<&CheckpointEntry>], ) -> Result<Plan, String>
What restoring point needs with these checkpoints.
pub fn restorable(&self, shards: u32) -> impl Iterator<Item = Point> + '_
pub fn restorable(&self, shards: u32) -> impl Iterator<Item = Point> + '_
Restore points with a complete plan.
Trait Implementations§
§impl<'de> Deserialize<'de> for Timeline
impl<'de> Deserialize<'de> for Timeline
§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
impl StructuralPartialEq for Timeline
Auto Trait Implementations§
impl Freeze for Timeline
impl RefUnwindSafe for Timeline
impl Send for Timeline
impl Sync for Timeline
impl Unpin for Timeline
impl UnsafeUnpin for Timeline
impl UnwindSafe for Timeline
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