pub struct RemoveOptions { /* private fields */ }Expand description
Options controlling recursive removal.
The continue_on_error/retries behavior was previously hardcoded in the
NFS backend; exposing it lets callers choose GNU rm -r semantics (delete
as much as possible, report the first error) or fail fast. Backends using
the generic remover support only the default options and reject others.
Implementations§
Source§impl RemoveOptions
impl RemoveOptions
Sourcepub const fn batch_size(self) -> Option<NonZero<usize>>
pub const fn batch_size(self) -> Option<NonZero<usize>>
Configured batch size; None allows backend adaptation.
pub fn new() -> RemoveOptions
pub fn with_continue_on_error(self, value: bool) -> RemoveOptions
Sourcepub const fn continue_on_error(self) -> bool
pub const fn continue_on_error(self) -> bool
Whether removal continues after semantic per-entry failures.
pub fn with_batch_size(self, value: Option<NonZero<usize>>) -> RemoveOptions
pub fn with_retries(self, value: u32) -> RemoveOptions
Trait Implementations§
Source§impl Clone for RemoveOptions
impl Clone for RemoveOptions
Source§fn clone(&self) -> RemoveOptions
fn clone(&self) -> RemoveOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RemoveOptions
Source§impl Debug for RemoveOptions
impl Debug for RemoveOptions
Source§impl Default for RemoveOptions
impl Default for RemoveOptions
Source§fn default() -> RemoveOptions
fn default() -> RemoveOptions
Returns the “default value” for a type. Read more
impl Eq for RemoveOptions
Source§impl PartialEq for RemoveOptions
impl PartialEq for RemoveOptions
impl StructuralPartialEq for RemoveOptions
Auto Trait Implementations§
impl Freeze for RemoveOptions
impl RefUnwindSafe for RemoveOptions
impl Send for RemoveOptions
impl Sync for RemoveOptions
impl Unpin for RemoveOptions
impl UnsafeUnpin for RemoveOptions
impl UnwindSafe for RemoveOptions
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