[−][src]Struct async_google_apis_common::ResumableUpload
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]
to: Uri,
cl: &'client TlsClient,
max_chunksize: usize
) -> ResumableUpload<'client, Response>
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]
&'_ self,
__arg1: R,
size: usize
) -> Result<Response>
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,
Response: Send,
impl<'client, Response> Sync for ResumableUpload<'client, Response> where
Response: Sync,
Response: Sync,
impl<'client, Response> Unpin for ResumableUpload<'client, Response> where
Response: Unpin,
Response: Unpin,
impl<'client, Response> !UnwindSafe for ResumableUpload<'client, Response>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[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.
pub 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>,