Struct iron::headers::Protocol [] [src]

pub struct Protocol {
    pub name: ProtocolName,
    pub version: Option<String>,
}

Protocols that appear in the Upgrade header field

Fields

The protocol identifier

The optional version of the protocol, often in the format "DIGIT.DIGIT" (e.g.. "1.2")

Methods

impl Protocol

Creates a new Protocol with the given name and version

Trait Implementations

impl PartialEq<Protocol> for Protocol

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

This method tests for !=.

impl Eq for Protocol

impl Debug for Protocol

Formats the value using the given formatter.

impl Clone for Protocol

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl FromStr for Protocol

impl Display for Protocol

Formats the value using the given formatter.