pub enum UploadOffset {
At(u64),
Unknown,
}Expand description
The value of the HEADER_UPLOAD_OFFSET request header.
In a request, a concrete offset submits a chunk starting at that byte,
while UploadOffset::Unknown asks the server which offset it holds.
Variants§
At(u64)
Denotes a chunk whose first byte sits at this offset.
Unknown
Used to query the server for its authoritative offset.
Trait Implementations§
Source§impl Clone for UploadOffset
impl Clone for UploadOffset
Source§fn clone(&self) -> UploadOffset
fn clone(&self) -> UploadOffset
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 moreimpl Copy for UploadOffset
Source§impl Debug for UploadOffset
impl Debug for UploadOffset
Source§impl Display for UploadOffset
impl Display for UploadOffset
impl Eq for UploadOffset
Source§impl FromStr for UploadOffset
impl FromStr for UploadOffset
Source§impl PartialEq for UploadOffset
impl PartialEq for UploadOffset
Source§fn eq(&self, other: &UploadOffset) -> bool
fn eq(&self, other: &UploadOffset) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UploadOffset
Auto Trait Implementations§
impl Freeze for UploadOffset
impl RefUnwindSafe for UploadOffset
impl Send for UploadOffset
impl Sync for UploadOffset
impl Unpin for UploadOffset
impl UnsafeUnpin for UploadOffset
impl UnwindSafe for UploadOffset
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