pub enum Urgency {
VeryLow,
Low,
Normal,
High,
}Expand description
The Web Push Urgency header (RFC 8030 §5.3), shared by every crate
that sends or classifies a push: urgency-option = ("very-low" / "low" / "normal" / "high"). Variants order “in order of increasing
urgency”, so max picks the most urgent. “A push message without the
Urgency header field defaults to a value of “normal”.“
Variants§
Implementations§
Trait Implementations§
impl Copy for Urgency
Source§impl<'de> Deserialize<'de> for Urgency
Accepts only the four urgency-option strings: RFC 8030 §5.3 closes
the set, so any other string is an error rather than an Other value.
impl<'de> Deserialize<'de> for Urgency
Accepts only the four urgency-option strings: RFC 8030 §5.3 closes
the set, so any other string is an error rather than an Other value.
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Urgency
Source§impl Ord for Urgency
impl Ord for Urgency
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Urgency
impl PartialOrd for Urgency
impl StructuralPartialEq for Urgency
Auto Trait Implementations§
impl Freeze for Urgency
impl RefUnwindSafe for Urgency
impl Send for Urgency
impl Sync for Urgency
impl Unpin for Urgency
impl UnsafeUnpin for Urgency
impl UnwindSafe for Urgency
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