Struct google_orgpolicy2::client::ResumableUploadHelper[][src]

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,
}

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

impl<'a, A> ResumableUploadHelper<'a, A>[src]

pub async fn upload(&mut self) -> Option<Result<Response<Body>>>[src]

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

impl<'a, A> !RefUnwindSafe for ResumableUploadHelper<'a, A>

impl<'a, A> !Send for ResumableUploadHelper<'a, A>

impl<'a, A> !Sync for ResumableUploadHelper<'a, A>

impl<'a, A> Unpin for ResumableUploadHelper<'a, A>

impl<'a, A> !UnwindSafe for ResumableUploadHelper<'a, A>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.