#[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

Creates a new Priority.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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.

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.