pub struct OpCopier { /* private fields */ }Expand description
Args for copier operation.
Implementations§
Source§impl OpCopier
impl OpCopier
Sourcepub fn with_concurrent(self, concurrent: usize) -> Self
pub fn with_concurrent(self, concurrent: usize) -> Self
Set the concurrent tasks for the copier.
Sourcepub fn concurrent(&self) -> usize
pub fn concurrent(&self) -> usize
Get the concurrent tasks for the copier.
Sourcepub fn with_chunk(self, chunk: usize) -> Self
pub fn with_chunk(self, chunk: usize) -> Self
Set the chunk size for the copier.
Sourcepub fn with_source_content_length_hint(self, content_length: u64) -> Self
pub fn with_source_content_length_hint(self, content_length: u64) -> Self
Set source content length hint for the copier.
Sourcepub fn source_content_length_hint(&self) -> Option<u64>
pub fn source_content_length_hint(&self) -> Option<u64>
Get source content length hint from the copier.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OpCopier
impl RefUnwindSafe for OpCopier
impl Send for OpCopier
impl Sync for OpCopier
impl Unpin for OpCopier
impl UnwindSafe for OpCopier
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