Enum twilio_async::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
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[src]
impl PartialEq<ProtocolName> for ProtocolNamefn eq(&self, other: &ProtocolName) -> bool[src]
fn eq(&self, other: &ProtocolName) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &ProtocolName) -> bool[src]
fn ne(&self, other: &ProtocolName) -> boolThis method tests for !=.
impl Clone for ProtocolName[src]
impl Clone for ProtocolNamefn clone(&self) -> ProtocolName[src]
fn clone(&self) -> ProtocolNameReturns 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)Performs copy-assignment from source. Read more
impl FromStr for ProtocolName[src]
impl FromStr for ProtocolNametype 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 Debug for ProtocolName[src]
impl Debug for ProtocolNamefn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl Display for ProtocolName[src]
impl Display for ProtocolNamefn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl Eq for ProtocolName[src]
impl Eq for ProtocolNameAuto Trait Implementations
impl Send for ProtocolName
impl Send for ProtocolNameimpl Sync for ProtocolName
impl Sync for ProtocolName