Enum iron::headers::ProtocolName  
                   
                       [−]
                   
               [src]
pub enum ProtocolName {
    Http,
    Tls,
    WebSocket,
    H2c,
    Unregistered(String),
}A protocol name used to identify a spefic protocol. Names are case-sensitive
except for the WebSocket value.
Variants
HttpHTTP value, Hypertext Transfer Protocol
TlsTLS value, Transport Layer Security RFC2817
WebSocketWebSocket value, matched case insensitively,Web Socket Protocol
RFC6455
H2ch2c value, HTTP/2 over cleartext TCP
Unregistered(String)Any other protocol name not known to hyper
Trait Implementations
impl PartialEq<ProtocolName> for ProtocolName
fn eq(&self, __arg_0: &ProtocolName) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &ProtocolName) -> bool
This method tests for !=.
impl Eq for ProtocolName
impl Debug for ProtocolName
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl Clone for ProtocolName
fn clone(&self) -> ProtocolName
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more