pub struct MultipartOptions { /* private fields */ }Expand description
Validated resource and time bounds for one managed multipart upload.
Implementations§
Source§impl MultipartOptions
impl MultipartOptions
Sourcepub fn new(part_size: u64, concurrency: usize) -> Result<Self, S3Error>
pub fn new(part_size: u64, concurrency: usize) -> Result<Self, S3Error>
Creates multipart options with bounded transfer and cleanup defaults.
§Errors
Returns an error unless part_size is between 5 MiB and 5 GiB and
concurrency is between 1 and 64.
Sourcepub fn with_transfer_timeout(self, timeout: Duration) -> Result<Self, S3Error>
pub fn with_transfer_timeout(self, timeout: Duration) -> Result<Self, S3Error>
Sets the deadline for preparation, upload, and completion.
§Errors
Returns an error when timeout is zero.
Sourcepub fn with_cleanup_timeout(self, timeout: Duration) -> Result<Self, S3Error>
pub fn with_cleanup_timeout(self, timeout: Duration) -> Result<Self, S3Error>
Sets the separate deadline for quiescing in-flight parts and aborting.
§Errors
Returns an error when timeout is zero.
Sourcepub const fn concurrency(self) -> usize
pub const fn concurrency(self) -> usize
Returns the maximum number of part requests in flight.
Sourcepub fn maximum_buffered_bytes(self) -> u64
pub fn maximum_buffered_bytes(self) -> u64
Returns the derived maximum bytes retained by in-flight part buffers.
Sourcepub const fn transfer_timeout(self) -> Duration
pub const fn transfer_timeout(self) -> Duration
Returns the transfer deadline duration.
Sourcepub const fn cleanup_timeout(self) -> Duration
pub const fn cleanup_timeout(self) -> Duration
Returns the part-quiescing and abort cleanup deadline duration.
Trait Implementations§
Source§impl Clone for MultipartOptions
impl Clone for MultipartOptions
Source§fn clone(&self) -> MultipartOptions
fn clone(&self) -> MultipartOptions
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 MultipartOptions
Source§impl Debug for MultipartOptions
impl Debug for MultipartOptions
Source§impl Default for MultipartOptions
impl Default for MultipartOptions
impl Eq for MultipartOptions
Source§impl PartialEq for MultipartOptions
impl PartialEq for MultipartOptions
impl StructuralPartialEq for MultipartOptions
Auto Trait Implementations§
impl Freeze for MultipartOptions
impl RefUnwindSafe for MultipartOptions
impl Send for MultipartOptions
impl Sync for MultipartOptions
impl Unpin for MultipartOptions
impl UnsafeUnpin for MultipartOptions
impl UnwindSafe for MultipartOptions
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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.