Trait HeaderValue

Source
pub trait HeaderValue: Display {
    type OwnedValue;
    type Value;

    const OWNED: bool;

    // Required method
    fn header_name(&self) -> &str;
}
Expand description

A Header that reveals it’s type and it’s value, and can be displayed

Required Associated Constants§

Required Associated Types§

Required Methods§

Source

fn header_name(&self) -> &str

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl HeaderValue for CustomValue

Source§

const OWNED: bool = false

Source§

type OwnedValue = String

Source§

type Value = &'static str

Source§

impl<'a> HeaderValue for AcceptVersionValue<'a>

Source§

impl<'a> HeaderValue for AckValue<'a>

Source§

impl<'a> HeaderValue for ContentLengthValue<'a>

Source§

impl<'a> HeaderValue for ContentTypeValue<'a>

Source§

const OWNED: bool = false

Source§

type OwnedValue = String

Source§

type Value = &'static str

Source§

impl<'a> HeaderValue for DestinationValue<'a>

Source§

const OWNED: bool = false

Source§

type OwnedValue = String

Source§

type Value = &'static str

Source§

impl<'a> HeaderValue for HeartBeatValue<'a>

Source§

impl<'a> HeaderValue for HostValue<'a>

Source§

const OWNED: bool = false

Source§

type OwnedValue = String

Source§

type Value = &'static str

Source§

impl<'a> HeaderValue for IdValue<'a>

Source§

const OWNED: bool = false

Source§

type OwnedValue = String

Source§

type Value = &'static str

Source§

impl<'a> HeaderValue for LoginValue<'a>

Source§

const OWNED: bool = false

Source§

type OwnedValue = String

Source§

type Value = &'static str

Source§

impl<'a> HeaderValue for MessageIdValue<'a>

Source§

const OWNED: bool = false

Source§

type OwnedValue = String

Source§

type Value = &'static str

Source§

impl<'a> HeaderValue for MessageValue<'a>

Source§

const OWNED: bool = false

Source§

type OwnedValue = String

Source§

type Value = &'static str

Source§

impl<'a> HeaderValue for PasscodeValue<'a>

Source§

const OWNED: bool = false

Source§

type OwnedValue = String

Source§

type Value = &'static str

Source§

impl<'a> HeaderValue for ReceiptIdValue<'a>

Source§

const OWNED: bool = false

Source§

type OwnedValue = String

Source§

type Value = &'static str

Source§

impl<'a> HeaderValue for ReceiptValue<'a>

Source§

const OWNED: bool = false

Source§

type OwnedValue = String

Source§

type Value = &'static str

Source§

impl<'a> HeaderValue for ServerValue<'a>

Source§

const OWNED: bool = false

Source§

type OwnedValue = String

Source§

type Value = &'static str

Source§

impl<'a> HeaderValue for SessionValue<'a>

Source§

const OWNED: bool = false

Source§

type OwnedValue = String

Source§

type Value = &'static str

Source§

impl<'a> HeaderValue for SubscriptionValue<'a>

Source§

const OWNED: bool = false

Source§

type OwnedValue = String

Source§

type Value = &'static str

Source§

impl<'a> HeaderValue for TransactionValue<'a>

Source§

const OWNED: bool = false

Source§

type OwnedValue = String

Source§

type Value = &'static str

Source§

impl<'a> HeaderValue for VersionValue<'a>