pub struct MultipartUploader<'a, State> { /* private fields */ }Implementations§
Source§impl<'a> MultipartUploader<'a, Init<'a>>
impl<'a> MultipartUploader<'a, Init<'a>>
Source§impl<'a> MultipartUploader<'a, Started<'a>>
impl<'a> MultipartUploader<'a, Started<'a>>
pub const fn id(&self) -> UploadId
Sourcepub async fn get_parts(&self) -> Result<Vec<UploadPart>, Error>
pub async fn get_parts(&self) -> Result<Vec<UploadPart>, Error>
Get the uploaded parts of the current session.
Sourcepub async fn add_part<S>(
&self,
range: ContentRange,
stream: S,
) -> Result<UploadPart, Error>
pub async fn add_part<S>( &self, range: ContentRange, stream: S, ) -> Result<UploadPart, Error>
Add a new part to the upload session.
Sourcepub async fn complete(
self,
) -> Result<MultipartUploader<'a, Completed<'a>>, Error>
pub async fn complete( self, ) -> Result<MultipartUploader<'a, Completed<'a>>, Error>
Complete the active upload session after uploading all parts with
MultipartUploader::add_part.
Source§impl<'a> MultipartUploader<'a, Completed<'a>>
impl<'a> MultipartUploader<'a, Completed<'a>>
Trait Implementations§
Source§impl IntoFuture for MultipartUploader<'_, Completed<'_>>
impl IntoFuture for MultipartUploader<'_, Completed<'_>>
Source§type Output = <MultipartUploaderCompleteFuture as Future>::Output
type Output = <MultipartUploaderCompleteFuture as Future>::Output
The output that the future will produce on completion.
Source§type IntoFuture = MultipartUploaderCompleteFuture
type IntoFuture = MultipartUploaderCompleteFuture
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Source§impl<'a> IntoFuture for MultipartUploader<'a, Init<'a>>
impl<'a> IntoFuture for MultipartUploader<'a, Init<'a>>
Source§type Output = <MultipartUploaderInitFuture<'a> as Future>::Output
type Output = <MultipartUploaderInitFuture<'a> as Future>::Output
The output that the future will produce on completion.
Source§type IntoFuture = MultipartUploaderInitFuture<'a>
type IntoFuture = MultipartUploaderInitFuture<'a>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl<'a, State> Freeze for MultipartUploader<'a, State>where
State: Freeze,
impl<'a, State> RefUnwindSafe for MultipartUploader<'a, State>where
State: RefUnwindSafe,
impl<'a, State> Send for MultipartUploader<'a, State>where
State: Send,
impl<'a, State> Sync for MultipartUploader<'a, State>where
State: Sync,
impl<'a, State> Unpin for MultipartUploader<'a, State>where
State: Unpin,
impl<'a, State> UnwindSafe for MultipartUploader<'a, State>where
State: UnwindSafe,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ServiceExt for T
impl<T> ServiceExt for T
§fn compression(self) -> Compression<Self>where
Self: Sized,
fn compression(self) -> Compression<Self>where
Self: Sized,
Compresses response bodies. Read more
§fn decompression(self) -> Decompression<Self>where
Self: Sized,
fn decompression(self) -> Decompression<Self>where
Self: Sized,
Decompress response bodies. Read more
§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using HTTP status codes. Read more
§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using gRPC headers. Read more