pub enum Selection {
Full,
Partial {
start: u64,
end: u64,
},
Unsatisfiable,
}Expand description
What a Range header selects from a representation of len bytes.
Variants§
Full
Serve the whole representation with 200: no Range, an invalid or
unsupported one, a multi-range request, or an If-Range that does
not match a strong ETag.
Partial
Serve the inclusive range with 206.
Unsatisfiable
416 with Content-Range: bytes */len.
Trait Implementations§
impl Copy for Selection
impl Eq for Selection
impl StructuralPartialEq for Selection
Auto Trait Implementations§
impl Freeze for Selection
impl RefUnwindSafe for Selection
impl Send for Selection
impl Sync for Selection
impl Unpin for Selection
impl UnsafeUnpin for Selection
impl UnwindSafe for Selection
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