[][src]Struct file_shred::ShredConfig

pub struct ShredConfig<P: AsRef<Path>> {
    pub files: Vec<P>,
    pub confirmation_prompt: bool,
    pub verbosity: Verbosity,
    pub keep_files: bool,
    pub overwrite_count: u32,
    pub rename_count: u32,
    pub progress_bar: bool,
}

Fields

files: Vec<P>confirmation_prompt: boolverbosity: Verbositykeep_files: booloverwrite_count: u32rename_count: u32progress_bar: bool

Methods

impl<P: AsRef<Path>> ShredConfig<P>[src]

pub fn non_interactive(
    files: Vec<P>,
    verbosity: Verbosity,
    keep_files: bool,
    overwrite_count: u32,
    rename_count: u32
) -> Self
[src]

pub fn interactive(
    files: Vec<P>,
    confirmation_prompt: bool,
    verbosity: Verbosity,
    keep_files: bool,
    overwrite_count: u32,
    rename_count: u32
) -> Self
[src]

Trait Implementations

impl<P: Debug + AsRef<Path>> Debug for ShredConfig<P>[src]

Auto Trait Implementations

impl<P> RefUnwindSafe for ShredConfig<P> where
    P: RefUnwindSafe

impl<P> Send for ShredConfig<P> where
    P: Send

impl<P> Sync for ShredConfig<P> where
    P: Sync

impl<P> Unpin for ShredConfig<P> where
    P: Unpin

impl<P> UnwindSafe for ShredConfig<P> where
    P: UnwindSafe

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,