pub struct ExtensionType(/* private fields */);
Expand description
Extension types, to be used with ClientHello::get_extension
.
WARNING: The current implementation of From
is unsound, as it’s possible to create an
ExtensionType that is not defined by the impl. From
will be deprecated in favor of TryFrom
in the next major bump of the library.
Implementations§
Source§impl ExtensionType
impl ExtensionType
pub const SERVER_NAME: ExtensionType
pub const STATUS_REQUEST: ExtensionType
pub const EC_POINT_FORMATS: ExtensionType
pub const SIGNATURE_ALGORITHMS: ExtensionType
pub const SRTP: ExtensionType
pub const APPLICATION_LAYER_PROTOCOL_NEGOTIATION: ExtensionType
pub const PADDING: ExtensionType
pub const EXTENDED_MASTER_SECRET: ExtensionType
pub const QUIC_TRANSPORT_PARAMETERS_LEGACY: ExtensionType
pub const QUIC_TRANSPORT_PARAMETERS_STANDARD: ExtensionType
pub const CERT_COMPRESSION: ExtensionType
pub const SESSION_TICKET: ExtensionType
pub const SUPPORTED_GROUPS: ExtensionType
pub const PRE_SHARED_KEY: ExtensionType
pub const EARLY_DATA: ExtensionType
pub const SUPPORTED_VERSIONS: ExtensionType
pub const COOKIE: ExtensionType
pub const PSK_KEY_EXCHANGE_MODES: ExtensionType
pub const CERTIFICATE_AUTHORITIES: ExtensionType
pub const SIGNATURE_ALGORITHMS_CERT: ExtensionType
pub const KEY_SHARE: ExtensionType
pub const RENEGOTIATE: ExtensionType
pub const DELEGATED_CREDENTIAL: ExtensionType
pub const APPLICATION_SETTINGS: ExtensionType
pub const APPLICATION_SETTINGS_NEW: ExtensionType
pub const ENCRYPTED_CLIENT_HELLO: ExtensionType
pub const CERTIFICATE_TIMESTAMP: ExtensionType
pub const NEXT_PROTO_NEG: ExtensionType
pub const CHANNEL_ID: ExtensionType
pub const RECORD_SIZE_LIMIT: ExtensionType
Sourcepub const BORING_SSLEXTENSION_PERMUTATION: &'static [ExtensionType]
pub const BORING_SSLEXTENSION_PERMUTATION: &'static [ExtensionType]
The permutation of extension types used by BoringSSL.
Sourcepub const fn index_of(value: ExtensionType) -> Option<usize>
pub const fn index_of(value: ExtensionType) -> Option<usize>
Returns the index of the given extension type in the permutation.
Trait Implementations§
Source§impl Clone for ExtensionType
impl Clone for ExtensionType
Source§fn clone(&self) -> ExtensionType
fn clone(&self) -> ExtensionType
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 ExtensionType
impl Debug for ExtensionType
Source§impl From<u16> for ExtensionType
impl From<u16> for ExtensionType
Source§fn from(value: u16) -> ExtensionType
fn from(value: u16) -> ExtensionType
Converts to this type from the input type.
Source§impl PartialEq for ExtensionType
impl PartialEq for ExtensionType
impl Copy for ExtensionType
impl Eq for ExtensionType
impl StructuralPartialEq for ExtensionType
Auto Trait Implementations§
impl Freeze for ExtensionType
impl RefUnwindSafe for ExtensionType
impl Send for ExtensionType
impl Sync for ExtensionType
impl Unpin for ExtensionType
impl UnwindSafe for ExtensionType
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more