#[repr(C)]pub struct Priority { /* private fields */ }
Expand description
Extensible Priorities parameters.
The TryFrom
trait supports constructing this object from the serialized
Structured Fields Dictionary field value. I.e, use TryFrom
to parse the
value of a Priority header field or a PRIORITY_UPDATE frame. Using this
trait requires the sfv
feature to be enabled.
Implementations
Trait Implementations
sourceimpl TryFrom<&[u8]> for Priority
Available on crate feature sfv
only.
impl TryFrom<&[u8]> for Priority
sfv
only.sourcefn try_from(value: &[u8]) -> Result<Self, Self::Error>
fn try_from(value: &[u8]) -> Result<Self, Self::Error>
Try to parse an Extensible Priority field value.
The field value is expected to be a Structured Fields Dictionary; see Extensible Priorities.
If the u
or i
fields are contained with correct types, a constructed
Priority object is returned. Note that urgency values outside of valid
range (0 through 7) are clamped to 7.
If the u
or i
fields are contained with the wrong types,
Error::Done is returned.
Omitted parameters will yield default values.
impl StructuralPartialEq for Priority
Auto Trait Implementations
impl RefUnwindSafe for Priority
impl Send for Priority
impl Sync for Priority
impl Unpin for Priority
impl UnwindSafe for Priority
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more