pub struct MultipartUpload { /* private fields */ }Expand description
Typed multipart upload handle.
Implementations§
Source§impl MultipartUpload
impl MultipartUpload
Sourcepub async fn upload_part(
&self,
part_number: u32,
body: Bytes,
options: MutationOptions,
) -> Result<UploadedPart>
pub async fn upload_part( &self, part_number: u32, body: Bytes, options: MutationOptions, ) -> Result<UploadedPart>
Upload or replace one buffered part.
§Errors
Returns an error when the service rejects or cannot complete the request.
Sourcepub async fn list_parts(&self) -> Result<Vec<UploadedPart>>
pub async fn list_parts(&self) -> Result<Vec<UploadedPart>>
List staged parts in ascending part-number order.
§Errors
Returns an error when the service rejects or cannot complete the request.
Sourcepub async fn complete(
&self,
parts: Vec<UploadedPart>,
options: MutationOptions,
) -> Result<ObjectVersion>
pub async fn complete( &self, parts: Vec<UploadedPart>, options: MutationOptions, ) -> Result<ObjectVersion>
Atomically publish one immutable version from exact part receipts.
§Errors
Returns an error when the service rejects or cannot complete the request.
Trait Implementations§
Source§impl Clone for MultipartUpload
impl Clone for MultipartUpload
Source§fn clone(&self) -> MultipartUpload
fn clone(&self) -> MultipartUpload
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 moreAuto Trait Implementations§
impl !Freeze for MultipartUpload
impl !RefUnwindSafe for MultipartUpload
impl !UnwindSafe for MultipartUpload
impl Send for MultipartUpload
impl Sync for MultipartUpload
impl Unpin for MultipartUpload
impl UnsafeUnpin for MultipartUpload
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request