Struct backedup::Plan[][src]

pub struct Plan {
    pub to_keep: Vec<PathBuf>,
    pub to_remove: Vec<PathBuf>,
    // some fields omitted
}

Plan for keeping/removing PathBuf with configured slots.

PathBuf that are invalid strings aren’t considered for either retention or deletion.

Fields

to_keep: Vec<PathBuf>to_remove: Vec<PathBuf>

Implementations

impl Plan[src]

pub fn new<P: AsRef<Path>>(
    config: &Config,
    path: P
) -> Result<Self, BackedUpError>
[src]

pub fn execute(&self)[src]

Execute plan and remove timestamped files not matching any slots

Trait Implementations

impl Display for Plan[src]

Auto Trait Implementations

impl RefUnwindSafe for Plan

impl Send for Plan

impl Sync for Plan

impl Unpin for Plan

impl UnwindSafe for Plan

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> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[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.