Struct BackupOptions
pub struct BackupOptions {
pub upload_interval: Option<Duration>,
pub resolution: Duration,
pub retention: Duration,
}Expand description
How a backup runs.
Fields§
§upload_interval: Option<Duration>Upload the active segment’s durable prefix this often while the log
grows. None: upload only sealed segments; the loss window is then
the active segment.
resolution: DurationRecord a restore point this often while the log is written.
retention: DurationKeep restore points (and what they need) this long.
Trait Implementations§
§impl Clone for BackupOptions
impl Clone for BackupOptions
§fn clone(&self) -> BackupOptions
fn clone(&self) -> BackupOptions
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 more§impl Debug for BackupOptions
impl Debug for BackupOptions
Auto Trait Implementations§
impl Freeze for BackupOptions
impl RefUnwindSafe for BackupOptions
impl Send for BackupOptions
impl Sync for BackupOptions
impl Unpin for BackupOptions
impl UnsafeUnpin for BackupOptions
impl UnwindSafe for BackupOptions
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