pub enum RangeRequestOutcome {
Satisfiable(FileRange),
NotSatisfiable,
MalformedOrUnsupported,
MultipleRanges,
}Expand description
Outcome of evaluating range request headers.
Variants§
Satisfiable(FileRange)
Valid single byte range; serve 206 Partial Content.
NotSatisfiable
Range cannot be satisfied; serve 416 Range Not Satisfiable.
MalformedOrUnsupported
Range syntax is malformed or unsupported; serve full 200 response.
MultipleRanges
Multiple ranges provided; single-range only for now.
Trait Implementations§
Source§impl Clone for RangeRequestOutcome
impl Clone for RangeRequestOutcome
Source§fn clone(&self) -> RangeRequestOutcome
fn clone(&self) -> RangeRequestOutcome
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 Debug for RangeRequestOutcome
impl Debug for RangeRequestOutcome
impl Eq for RangeRequestOutcome
Source§impl PartialEq for RangeRequestOutcome
impl PartialEq for RangeRequestOutcome
impl StructuralPartialEq for RangeRequestOutcome
Auto Trait Implementations§
impl Freeze for RangeRequestOutcome
impl RefUnwindSafe for RangeRequestOutcome
impl Send for RangeRequestOutcome
impl Sync for RangeRequestOutcome
impl Unpin for RangeRequestOutcome
impl UnsafeUnpin for RangeRequestOutcome
impl UnwindSafe for RangeRequestOutcome
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