pub struct UploadPrepareCtx<'a> {
pub client: &'a Client,
pub task: &'a TransferTask,
pub local_offset: u64,
}Expand description
Context for upload prepare stage.
Fields§
§client: &'a ClientHTTP client used for requests.
task: &'a TransferTaskImmutable task snapshot.
local_offset: u64Locally confirmed uploaded offset in bytes.
Range: >= 0.
Trait Implementations§
Source§impl<'a> Clone for UploadPrepareCtx<'a>
impl<'a> Clone for UploadPrepareCtx<'a>
Source§fn clone(&self) -> UploadPrepareCtx<'a>
fn clone(&self) -> UploadPrepareCtx<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for UploadPrepareCtx<'a>
impl<'a> Debug for UploadPrepareCtx<'a>
impl<'a> Copy for UploadPrepareCtx<'a>
Auto Trait Implementations§
impl<'a> Freeze for UploadPrepareCtx<'a>
impl<'a> !RefUnwindSafe for UploadPrepareCtx<'a>
impl<'a> Send for UploadPrepareCtx<'a>
impl<'a> Sync for UploadPrepareCtx<'a>
impl<'a> Unpin for UploadPrepareCtx<'a>
impl<'a> UnsafeUnpin for UploadPrepareCtx<'a>
impl<'a> !UnwindSafe for UploadPrepareCtx<'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