Enum hyper::header::ProtocolName
[−]
[src]
pub enum ProtocolName { Http, Tls, WebSocket, H2c, Unregistered(String), }
A protocol name used to identify a specific protocol. Names are case-sensitive
except for the WebSocket
value.
Variants
Http
HTTP
value, Hypertext Transfer Protocol
Tls
TLS
value, Transport Layer Security RFC2817
WebSocket
WebSocket
value, matched case insensitively,Web Socket Protocol
RFC6455
H2c
h2c
value, HTTP/2 over cleartext TCP
Unregistered(String)
Any other protocol name not known to hyper
Trait Implementations
impl Clone for ProtocolName
[src]
impl Clone for ProtocolName
fn clone(&self) -> ProtocolName
[src]
fn clone(&self) -> ProtocolName
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for ProtocolName
[src]
impl Debug for ProtocolName
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for ProtocolName
[src]
impl Eq for ProtocolName
impl PartialEq for ProtocolName
[src]
impl PartialEq for ProtocolName
fn eq(&self, __arg_0: &ProtocolName) -> bool
[src]
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
[src]
fn ne(&self, __arg_0: &ProtocolName) -> bool
This method tests for !=
.
impl FromStr for ProtocolName
[src]
impl FromStr for ProtocolName
type Err = ()
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<ProtocolName, ()>
[src]
fn from_str(s: &str) -> Result<ProtocolName, ()>
Parses a string s
to return a value of this type. Read more
impl Display for ProtocolName
[src]
impl Display for ProtocolName
Auto Trait Implementations
impl Send for ProtocolName
impl Send for ProtocolName
impl Sync for ProtocolName
impl Sync for ProtocolName