#[non_exhaustive]pub enum AlpnProtocol {
H2,
Http11,
}Expand description
ALPN protocol identifier negotiated during the TLS handshake.
§Example
use stygian_browser::tls::AlpnProtocol;
assert_eq!(AlpnProtocol::H2.as_str(), "h2");Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Trait Implementations§
Source§impl Clone for AlpnProtocol
impl Clone for AlpnProtocol
Source§fn clone(&self) -> AlpnProtocol
fn clone(&self) -> AlpnProtocol
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 AlpnProtocol
impl Debug for AlpnProtocol
Source§impl<'de> Deserialize<'de> for AlpnProtocol
impl<'de> Deserialize<'de> for AlpnProtocol
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for AlpnProtocol
impl Display for AlpnProtocol
Source§impl Hash for AlpnProtocol
impl Hash for AlpnProtocol
Source§impl PartialEq for AlpnProtocol
impl PartialEq for AlpnProtocol
Source§impl Serialize for AlpnProtocol
impl Serialize for AlpnProtocol
impl Copy for AlpnProtocol
impl Eq for AlpnProtocol
impl StructuralPartialEq for AlpnProtocol
Auto Trait Implementations§
impl Freeze for AlpnProtocol
impl RefUnwindSafe for AlpnProtocol
impl Send for AlpnProtocol
impl Sync for AlpnProtocol
impl Unpin for AlpnProtocol
impl UnsafeUnpin for AlpnProtocol
impl UnwindSafe for AlpnProtocol
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.