pub struct ResumableUploadHelper<'a, A: 'a, S>where
S: Service<Uri> + Clone + Send + Sync + 'static,
S::Response: Connection + AsyncRead + AsyncWrite + Send + Unpin + 'static,
S::Future: Send + Unpin + 'static,
S::Error: Into<Box<dyn StdError + Send + Sync>>,{
pub client: &'a Client<S, Body>,
pub delegate: &'a mut dyn Delegate,
pub start_at: Option<u64>,
pub auth: &'a A,
pub user_agent: &'a str,
pub auth_header: String,
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 Client<S, Body>
§delegate: &'a mut dyn Delegate
§start_at: Option<u64>
§auth: &'a A
§user_agent: &'a str
§auth_header: String
§url: &'a str
§reader: &'a mut dyn ReadSeek
§media_type: Mime
§content_length: u64
Implementations§
Auto Trait Implementations§
impl<'a, A, S> !RefUnwindSafe for ResumableUploadHelper<'a, A, S>
impl<'a, A, S> Send for ResumableUploadHelper<'a, A, S>where A: Sync,
impl<'a, A, S> !Sync for ResumableUploadHelper<'a, A, S>
impl<'a, A, S> Unpin for ResumableUploadHelper<'a, A, S>
impl<'a, A, S> !UnwindSafe for ResumableUploadHelper<'a, A, S>
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