pub enum ProtocolName {
    Http,
    Tls,
    WebSocket,
    H2c,
    Unregistered(String),
}Expand description
A protocol name used to identify a spefic 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§
Source§impl Clone for ProtocolName
 
impl Clone for ProtocolName
Source§fn clone(&self) -> ProtocolName
 
fn clone(&self) -> ProtocolName
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for ProtocolName
 
impl Debug for ProtocolName
Source§impl Display for ProtocolName
 
impl Display for ProtocolName
Source§impl FromStr for ProtocolName
 
impl FromStr for ProtocolName
Source§impl PartialEq for ProtocolName
 
impl PartialEq for ProtocolName
impl Eq for ProtocolName
impl StructuralPartialEq for ProtocolName
Auto Trait Implementations§
impl Freeze for ProtocolName
impl RefUnwindSafe for ProtocolName
impl Send for ProtocolName
impl Sync for ProtocolName
impl Unpin for ProtocolName
impl UnwindSafe for ProtocolName
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more