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 Types§

Required Associated Constants§

Required Methods§

source

fn header_name(&self) -> &str

Implementors§

source§

impl HeaderValue for AcceptVersionValue

source§

impl HeaderValue for AckValue

source§

impl HeaderValue for ContentLengthValue

§

type OwnedValue = u32

§

type Value = u32

source§

const OWNED: bool = true

source§

impl HeaderValue for ContentTypeValue

§

type OwnedValue = String

§

type Value = &'static str

source§

const OWNED: bool = false

source§

impl HeaderValue for CustomValue

§

type OwnedValue = String

§

type Value = &'static str

source§

const OWNED: bool = false

source§

impl HeaderValue for DestinationValue

§

type OwnedValue = String

§

type Value = &'static str

source§

const OWNED: bool = false

source§

impl HeaderValue for HeartBeatValue

source§

impl HeaderValue for HostValue

§

type OwnedValue = String

§

type Value = &'static str

source§

const OWNED: bool = false

source§

impl HeaderValue for IdValue

§

type OwnedValue = String

§

type Value = &'static str

source§

const OWNED: bool = false

source§

impl HeaderValue for LoginValue

§

type OwnedValue = String

§

type Value = &'static str

source§

const OWNED: bool = false

source§

impl HeaderValue for MessageIdValue

§

type OwnedValue = String

§

type Value = &'static str

source§

const OWNED: bool = false

source§

impl HeaderValue for MessageValue

§

type OwnedValue = String

§

type Value = &'static str

source§

const OWNED: bool = false

source§

impl HeaderValue for PasscodeValue

§

type OwnedValue = String

§

type Value = &'static str

source§

const OWNED: bool = false

source§

impl HeaderValue for ReceiptIdValue

§

type OwnedValue = String

§

type Value = &'static str

source§

const OWNED: bool = false

source§

impl HeaderValue for ReceiptValue

§

type OwnedValue = String

§

type Value = &'static str

source§

const OWNED: bool = false

source§

impl HeaderValue for ServerValue

§

type OwnedValue = String

§

type Value = &'static str

source§

const OWNED: bool = false

source§

impl HeaderValue for SessionValue

§

type OwnedValue = String

§

type Value = &'static str

source§

const OWNED: bool = false

source§

impl HeaderValue for SubscriptionValue

§

type OwnedValue = String

§

type Value = &'static str

source§

const OWNED: bool = false

source§

impl HeaderValue for TransactionValue

§

type OwnedValue = String

§

type Value = &'static str

source§

const OWNED: bool = false

source§

impl HeaderValue for VersionValue