Struct reqwest::header::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
[src]

[src]

Creates a new Protocol with the given name and version

Trait Implementations

impl FromStr for Protocol
[src]

The associated error which can be returned from parsing.

[src]

Parses a string s to return a value of this type. Read more

impl Display for Protocol
[src]

[src]

Formats the value using the given formatter. Read more

impl Eq for Protocol
[src]

impl PartialEq<Protocol> for Protocol
[src]

[src]

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

[src]

This method tests for !=.

impl Debug for Protocol
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Protocol
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more