pub struct ResumableUploadHelper<'a, A: 'a, S>where
    S: Service<Uri> + Clone + Send + Sync + 'static,
    S::Response: Connection + AsyncRead + AsyncWrite + Send + Unpin + 'static,
    S::Future: Send + Unpin + 'static,
    S::Error: Into<Box<dyn StdError + Send + Sync>>,
{ pub client: &'a Client<S, Body>, pub delegate: &'a mut dyn Delegate, pub start_at: Option<u64>, pub auth: &'a A, pub user_agent: &'a str, pub auth_header: String, pub url: &'a str, pub reader: &'a mut dyn ReadSeek, pub media_type: Mime, pub content_length: u64, }
Expand description

A utility type to perform a resumable upload from start to end.

Fields§

§client: &'a Client<S, Body>§delegate: &'a mut dyn Delegate§start_at: Option<u64>§auth: &'a A§user_agent: &'a str§auth_header: String§url: &'a str§reader: &'a mut dyn ReadSeek§media_type: Mime§content_length: u64

Implementations§

returns None if operation was cancelled by delegate, or the HttpResult. It can be that we return the result just because we didn’t understand the status code - caller should check for status himself before assuming it’s OK to use

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more