pub struct UploadedParts {
pub parts: Vec<(EntityTag, i32)>,
}
Expand description
A type holding the history of parts already uploaded, expressed as a vector
of (EntityTag, i32)
. The second coordinate is a monotonically increasing
sequence of integers for each uploaded part.
Fields§
§parts: Vec<(EntityTag, i32)>
Implementations§
Source§impl UploadedParts
impl UploadedParts
pub fn new() -> Self
Sourcepub fn update(&mut self, etag: EntityTag)
pub fn update(&mut self, etag: EntityTag)
Add the ID of a new completed part, incrementing the integer index.
Sourcepub fn last_completed(&self) -> i32
pub fn last_completed(&self) -> i32
Get the last completed part number, which is equal to the maximum over the vector of the part numbers.
Trait Implementations§
Source§impl Clone for UploadedParts
impl Clone for UploadedParts
Source§fn clone(&self) -> UploadedParts
fn clone(&self) -> UploadedParts
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 UploadedParts
impl Debug for UploadedParts
Source§impl Default for UploadedParts
impl Default for UploadedParts
Source§fn default() -> UploadedParts
fn default() -> UploadedParts
Returns the “default value” for a type. Read more
Source§impl Extend<(EntityTag, i32)> for UploadedParts
impl Extend<(EntityTag, i32)> for UploadedParts
Source§fn extend<T: IntoIterator<Item = (EntityTag, i32)>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = (EntityTag, i32)>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl<'a> From<&'a UploadedParts> for CompletedMultipartUpload
impl<'a> From<&'a UploadedParts> for CompletedMultipartUpload
Source§fn from(val: &'a UploadedParts) -> CompletedMultipartUpload
fn from(val: &'a UploadedParts) -> CompletedMultipartUpload
Converts to this type from the input type.
Source§impl PartialEq for UploadedParts
impl PartialEq for UploadedParts
impl StructuralPartialEq for UploadedParts
Auto Trait Implementations§
impl Freeze for UploadedParts
impl RefUnwindSafe for UploadedParts
impl Send for UploadedParts
impl Sync for UploadedParts
impl Unpin for UploadedParts
impl UnwindSafe for UploadedParts
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.