pub struct RemoveOptions {
pub continue_on_error: bool,
pub batch: usize,
pub retries: u32,
}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.
Fields§
§continue_on_error: boolKeep removing after a per-entry failure and report the first error at
the end. When false, the first failure aborts.
batch: usizeMaximum batch size for vectorized removals; 0 lets the backend learn
a safe size from useful work, starting at a conservative default.
retries: u32Bounded retries for retryable per-entry statuses.
Implementations§
Source§impl RemoveOptions
impl RemoveOptions
pub fn new() -> RemoveOptions
pub fn continue_on_error(self, value: bool) -> RemoveOptions
pub fn batch(self, value: usize) -> RemoveOptions
pub fn 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