[−][src]Struct ttstack::model::Snapshot
Snapshot management.
Fields
name: String
The name of snapshot.
path: String
The data path of snapshot,
May not be a regular file path, such as ZFS
.
meta_path: PathBuf
The 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
impl Snapshot
[src]
pub fn new(name: String, meta_path: PathBuf) -> Self
[src]
Init a new snapshot instance without life_time
limition.
pub fn newx(name: String, life_time: Option<u64>, meta_path: PathBuf) -> Self
[src]
Init a new snapshot instance.
Auto Trait Implementations
impl RefUnwindSafe for Snapshot
[src]
impl Send for Snapshot
[src]
impl Sync for Snapshot
[src]
impl Unpin for Snapshot
[src]
impl UnwindSafe for Snapshot
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,