[][src]Struct async_google_apis_common::ResumableUpload

pub struct ResumableUpload<'client, Response: DeserializeOwned> { /* fields omitted */ }

A resumable upload in progress, useful for sending large objects.

Implementations

impl<'client, Response: DeserializeOwned> ResumableUpload<'client, Response>[src]

pub fn new(
    to: Uri,
    cl: &'client TlsClient,
    max_chunksize: usize
) -> ResumableUpload<'client, Response>
[src]

pub fn set_max_chunksize(&mut self, size: usize) -> Result<&mut Self>[src]

pub async fn upload<R: AsyncRead + Unpin, '_>(
    &'_ self,
    __arg1: R,
    size: usize
) -> Result<Response>
[src]

Upload data from a reader; use only if the reader cannot be seeked. Memory usage is higher, because data needs to be cached if the server hasn't accepted all data.

pub async fn upload_file<'_>(&'_ self, __arg1: File) -> Result<Response>[src]

Upload content from a file. This is most efficient if you have an actual file, as seek can be used in case the server didn't accept all data.

Auto Trait Implementations

impl<'client, Response> !RefUnwindSafe for ResumableUpload<'client, Response>

impl<'client, Response> Send for ResumableUpload<'client, Response> where
    Response: Send

impl<'client, Response> Sync for ResumableUpload<'client, Response> where
    Response: Sync

impl<'client, Response> Unpin for ResumableUpload<'client, Response> where
    Response: Unpin

impl<'client, Response> !UnwindSafe for ResumableUpload<'client, Response>

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.