pub struct ResumableUploadHelper<'a, A: 'a> {
    pub client: &'a Client<HttpsConnector<HttpConnector>, 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<HttpsConnector<HttpConnector>, Body>delegate: &'a mut dyn Delegatestart_at: Option<u64>auth: &'a Auser_agent: &'a strauth_header: Stringurl: &'a strreader: &'a mut dyn ReadSeekmedia_type: Mimecontent_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