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,
}
Expand description
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
Implementations§
Source§impl<'a, A> ResumableUploadHelper<'a, A>where
A: GetToken,
impl<'a, A> ResumableUploadHelper<'a, A>where
A: GetToken,
Auto Trait Implementations§
impl<'a, A> Freeze for ResumableUploadHelper<'a, A>
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§
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more