pub struct Snapshot {
pub name: String,
pub path: String,
pub meta_path: PathBuf,
pub life_time: Option<u64>,
}Expand description
Snapshot management.
Fields§
§name: StringThe name of snapshot.
path: StringThe data path of snapshot,
May not be a regular file path, such as ZFS.
meta_path: PathBufThe corresponding metadata to the snapshot.
life_time: Option<u64>If set this, snapshot will be cleaned when the number of seconds it exists exceeds this value.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Snapshot
impl RefUnwindSafe for Snapshot
impl Send for Snapshot
impl Sync for Snapshot
impl Unpin for Snapshot
impl UnwindSafe for Snapshot
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