pub struct MoveManyBuilder { /* private fields */ }Expand description
Moves several independent sources into one destination directory in
a single operation, rather than requiring the caller to run
MoveBuilder once per source (and lose the ability to batch them
under one ErrorStrategy/concurrency pool/progress stream). dest
is always a directory sources land inside — each source keeps its
own basename under it — never a rename target the way MoveBuilder’s
dest can be.
Implementations§
Source§impl MoveManyBuilder
impl MoveManyBuilder
pub fn overwrite(self, overwrite: bool) -> Self
pub fn allow_filesystem_integrity_risk(self, allow: bool) -> Self
pub fn small_file_threshold(self, bytes: u64) -> Self
Sourcepub fn on_error(self, strategy: ErrorStrategy) -> Self
pub fn on_error(self, strategy: ErrorStrategy) -> Self
Governs the batch as a whole, not source-by-source: under
AbortOnError/Undo, the first failure — whether a whole
source’s rename or a single file inside one of the cross-device
fallback sources — stops every source not yet finished, not just
the one that failed.
pub fn batch_concurrency(self, n: usize) -> Self
pub fn start(self) -> Result<Handle<OperationOutcome>>
Auto Trait Implementations§
impl Freeze for MoveManyBuilder
impl RefUnwindSafe for MoveManyBuilder
impl Send for MoveManyBuilder
impl Sync for MoveManyBuilder
impl Unpin for MoveManyBuilder
impl UnsafeUnpin for MoveManyBuilder
impl UnwindSafe for MoveManyBuilder
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more