[][src]Struct ttstack::model::Snapshot

pub struct Snapshot {
    pub name: String,
    pub path: String,
    pub meta_path: PathBuf,
    pub life_time: Option<u64>,
}

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.