pub enum RangeOutcome {
Full,
Partial(ByteRange),
NotSatisfiable,
}Expand description
Outcome of evaluating Range: against a known resource length.
Full → 200 (no Range: header); Partial → 206; NotSatisfiable
→ 416 (not 412, which the old parse_range_header conflated).
Variants§
Trait Implementations§
Source§impl Clone for RangeOutcome
impl Clone for RangeOutcome
Source§fn clone(&self) -> RangeOutcome
fn clone(&self) -> RangeOutcome
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 RangeOutcome
impl Debug for RangeOutcome
Source§impl PartialEq for RangeOutcome
impl PartialEq for RangeOutcome
Source§fn eq(&self, other: &RangeOutcome) -> bool
fn eq(&self, other: &RangeOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for RangeOutcome
impl Eq for RangeOutcome
impl StructuralPartialEq for RangeOutcome
Auto Trait Implementations§
impl Freeze for RangeOutcome
impl RefUnwindSafe for RangeOutcome
impl Send for RangeOutcome
impl Sync for RangeOutcome
impl Unpin for RangeOutcome
impl UnsafeUnpin for RangeOutcome
impl UnwindSafe for RangeOutcome
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