pub struct Exclude { /* private fields */ }
Expand description
Describes which files to exclude from a backup, restore, etc.
Implementations§
source§impl Exclude
impl Exclude
sourcepub fn from_strings<I: IntoIterator<Item = S>, S: AsRef<str>>(
excludes: I
) -> Result<Exclude>
pub fn from_strings<I: IntoIterator<Item = S>, S: AsRef<str>>( excludes: I ) -> Result<Exclude>
Create an Exclude from a list of glob strings.
The globs match against the apath, which will
always start with a /
.
Globs are extended to also match any children of matching paths.
sourcepub fn from_patterns_and_files<I1, A, I2, P>(
exclude: I1,
exclude_from: I2
) -> Result<Exclude>
pub fn from_patterns_and_files<I1, A, I2, P>( exclude: I1, exclude_from: I2 ) -> Result<Exclude>
Build from a list of exclusion patterns and a list of files containing more patterns.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Exclude
impl Send for Exclude
impl Sync for Exclude
impl Unpin for Exclude
impl UnwindSafe for Exclude
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