pub struct Priority { /* private fields */ }Expand description
A response priority: an urgency level and an incremental flag.
Urgency runs from 0 (most urgent) to 7 (least urgent), defaulting to 3. The incremental flag indicates whether the response can be usefully processed as it arrives (e.g. a progressively-rendered image) rather than only once complete; servers may interleave incremental responses of equal urgency.
Parse one from a priority header value with Priority::parse (or FromStr), or start
from Priority::default; render it back to header form with Display.
Implementations§
Trait Implementations§
impl Copy for Priority
impl Eq for Priority
impl StructuralPartialEq for Priority
Auto Trait Implementations§
impl Freeze for Priority
impl RefUnwindSafe for Priority
impl Send for Priority
impl Sync for Priority
impl Unpin for Priority
impl UnsafeUnpin for Priority
impl UnwindSafe for Priority
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.