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 copy 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.