pub struct SnapshotSettings {
pub wait_seconds: f64,
pub disk_wait_seconds: f64,
pub size_hint: Option<u64>,
pub prepare: Option<String>,
pub remove_original_after: f64,
pub lock_path: Option<PathBuf>,
pub disk_poll_seconds: Option<f64>,
pub progress_interval_seconds: Option<f64>,
}Expand description
What a snapshot resume reads from its overrides.
Fields§
§wait_seconds: f64§disk_wait_seconds: f64§size_hint: Option<u64>§prepare: Option<String>§remove_original_after: f64§lock_path: Option<PathBuf>Lock file instead of START_SNAPSHOT_LOCK (tests).
disk_poll_seconds: Option<f64>Disk poll interval instead of START_SNAPSHOT_DISK_POLL (tests).
progress_interval_seconds: Option<f64>Progress interval instead of START_SNAPSHOT_PROGRESS_INTERVAL (tests).
Implementations§
Source§impl SnapshotSettings
impl SnapshotSettings
pub fn from_overrides(overrides: &Value) -> Self
Trait Implementations§
Source§impl Clone for SnapshotSettings
impl Clone for SnapshotSettings
Source§impl Debug for SnapshotSettings
impl Debug for SnapshotSettings
Source§impl Default for SnapshotSettings
impl Default for SnapshotSettings
Source§impl PartialEq for SnapshotSettings
impl PartialEq for SnapshotSettings
impl StructuralPartialEq for SnapshotSettings
Auto Trait Implementations§
impl Freeze for SnapshotSettings
impl RefUnwindSafe for SnapshotSettings
impl Send for SnapshotSettings
impl Sync for SnapshotSettings
impl Unpin for SnapshotSettings
impl UnsafeUnpin for SnapshotSettings
impl UnwindSafe for SnapshotSettings
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