[−][src]Struct google_books1::ResumableUploadHelper
A utility type to perform a resumable upload from start to end.
Fields
client: &'a mut Client
delegate: &'a mut dyn Delegate
start_at: Option<u64>
auth: &'a mut A
user_agent: &'a str
auth_header: Authorization<Bearer>
url: &'a str
reader: &'a mut dyn ReadSeek
media_type: Mime
content_length: u64
Methods
impl<'a, A> ResumableUploadHelper<'a, A> where
A: GetToken,
[src]
A: GetToken,
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> !Send for ResumableUploadHelper<'a, A>
impl<'a, A> Unpin for ResumableUploadHelper<'a, A>
impl<'a, A> !Sync for ResumableUploadHelper<'a, A>
impl<'a, A> !UnwindSafe for ResumableUploadHelper<'a, A>
impl<'a, A> !RefUnwindSafe for ResumableUploadHelper<'a, A>
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Typeable for T where
T: Any,
T: Any,