pub struct ResumableUploadClient { /* private fields */ }Implementations§
source§impl ResumableUploadClient
impl ResumableUploadClient
pub fn url(&self) -> &str
pub fn new(session_url: String, http: Client) -> Self
sourcepub async fn upload_single_chunk<T: Into<Body>>(
&self,
data: T,
size: usize,
) -> Result<(), Error>
pub async fn upload_single_chunk<T: Into<Body>>( &self, data: T, size: usize, ) -> Result<(), Error>
https://cloud.google.com/storage/docs/performing-resumable-uploads#single-chunk-upload
sourcepub async fn upload_multiple_chunk<T: Into<Body>>(
&self,
data: T,
size: &ChunkSize,
) -> Result<UploadStatus, Error>
pub async fn upload_multiple_chunk<T: Into<Body>>( &self, data: T, size: &ChunkSize, ) -> Result<UploadStatus, Error>
https://cloud.google.com/storage/docs/performing-resumable-uploads#chunked-upload https://cloud.google.com/storage/docs/performing-resumable-uploads#resume-upload
Trait Implementations§
source§impl Clone for ResumableUploadClient
impl Clone for ResumableUploadClient
source§fn clone(&self) -> ResumableUploadClient
fn clone(&self) -> ResumableUploadClient
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ResumableUploadClient
impl !RefUnwindSafe for ResumableUploadClient
impl Send for ResumableUploadClient
impl Sync for ResumableUploadClient
impl Unpin for ResumableUploadClient
impl !UnwindSafe for ResumableUploadClient
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)