pub struct UploadStatus {
pub upload_bytes: u64,
pub total_bytes: u64,
pub total_parts: u64,
pub duration: Duration,
pub should_complete: bool,
}Expand description
Returned by Upload when sending a part was successful.
Fields§
§upload_bytes: u64Last recorded size in bytes of all parts that have been added to the upload successfully.
total_bytes: u64Total size in bytes of all parts that have been sent.
total_parts: u64Total number of parts that have been sent.
duration: DurationTotal duration of this upload.
should_complete: boolWhether the current upload should be completed.
Trait Implementations§
Source§impl Clone for UploadStatus
impl Clone for UploadStatus
Source§fn clone(&self) -> UploadStatus
fn clone(&self) -> UploadStatus
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 UploadStatus
impl Debug for UploadStatus
Source§impl ShouldComplete for UploadStatus
impl ShouldComplete for UploadStatus
Source§fn should_complete(&self) -> bool
fn should_complete(&self) -> bool
Return
true if the upload should be completed.impl Copy for UploadStatus
Auto Trait Implementations§
impl Freeze for UploadStatus
impl RefUnwindSafe for UploadStatus
impl Send for UploadStatus
impl Sync for UploadStatus
impl Unpin for UploadStatus
impl UnsafeUnpin for UploadStatus
impl UnwindSafe for UploadStatus
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.