pub struct EncoderStatus {
pub upload_bytes: u64,
pub total_bytes: u64,
pub total_parts: u64,
pub total_items: u64,
pub part_bytes: u64,
pub part_items: u64,
pub duration: Duration,
pub should_send: bool,
pub should_complete: bool,
}Expand description
Returned by WithPartEncoder when writing an item 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 items that have been written.
total_parts: u64Total number of parts that have been written.
total_items: u64Total number of items that have been written.
part_bytes: u64Size in bytes of the current part.
part_items: u64Number of items written to the current part.
duration: DurationTotal duration of this upload.
should_send: boolWhether the current part should be sent.
should_complete: boolWhether the current upload should be completed.
Trait Implementations§
Source§impl Clone for EncoderStatus
impl Clone for EncoderStatus
Source§fn clone(&self) -> EncoderStatus
fn clone(&self) -> EncoderStatus
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 EncoderStatus
impl Debug for EncoderStatus
Source§impl ShouldComplete for EncoderStatus
impl ShouldComplete for EncoderStatus
Source§fn should_complete(&self) -> bool
fn should_complete(&self) -> bool
Return
true if the upload should be completed.impl Copy for EncoderStatus
Auto Trait Implementations§
impl Freeze for EncoderStatus
impl RefUnwindSafe for EncoderStatus
impl Send for EncoderStatus
impl Sync for EncoderStatus
impl Unpin for EncoderStatus
impl UnsafeUnpin for EncoderStatus
impl UnwindSafe for EncoderStatus
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.