pub struct DefaultControl { /* private fields */ }
Expand description
Basic default parameters for part/object uploads.
Implementations§
Source§impl DefaultControl
impl DefaultControl
pub fn new() -> Self
pub fn set_target_part_size(self, n: usize) -> Self
pub fn set_target_upload_size(self, n: usize) -> Self
pub fn set_target_num_parts(self, n: usize) -> Self
Trait Implementations§
Source§impl Clone for DefaultControl
impl Clone for DefaultControl
Source§fn clone(&self) -> DefaultControl
fn clone(&self) -> DefaultControl
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DefaultControl
impl Debug for DefaultControl
Source§impl Default for DefaultControl
impl Default for DefaultControl
Source§impl UploadControl for DefaultControl
impl UploadControl for DefaultControl
Source§fn target_part_size(&self) -> usize
fn target_part_size(&self) -> usize
The desired part size in bytes.
Source§fn is_upload_ready(&self, upload_size: usize, num_parts: usize) -> bool
fn is_upload_ready(&self, upload_size: usize, num_parts: usize) -> bool
Whether the overall upload is complete.
Source§fn is_part_ready(&self, part_size: usize) -> bool
fn is_part_ready(&self, part_size: usize) -> bool
Whether one part in the upload is complete.
Auto Trait Implementations§
impl Freeze for DefaultControl
impl RefUnwindSafe for DefaultControl
impl Send for DefaultControl
impl Sync for DefaultControl
impl Unpin for DefaultControl
impl UnwindSafe for DefaultControl
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreCreates a shared type from an unshared type.