[][src]Struct google_bigqueryreservation1::ResumableUploadHelper

pub struct ResumableUploadHelper<'a, A: 'a> {
    pub client: &'a mut Client,
    pub delegate: &'a mut dyn Delegate,
    pub start_at: Option<u64>,
    pub auth: &'a mut A,
    pub user_agent: &'a str,
    pub auth_header: Authorization<Bearer>,
    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 mut Clientdelegate: &'a mut dyn Delegatestart_at: Option<u64>auth: &'a mut Auser_agent: &'a strauth_header: Authorization<Bearer>url: &'a strreader: &'a mut dyn ReadSeekmedia_type: Mimecontent_length: u64

Implementations

impl<'a, A> ResumableUploadHelper<'a, A> where
    A: GetToken
[src]

pub fn upload(&mut self) -> Option<Result<Response>>[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, 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.

impl<T> Typeable for T where
    T: Any