pub enum ClientExtension {
Show 18 variants
ECPointFormats(ECPointFormatList),
NamedGroups(NamedGroups),
SignatureAlgorithms(SupportedSignatureSchemes),
ServerName(ServerNameRequest),
SessionTicket(ClientSessionTicket),
Protocols(ProtocolNameList),
SupportedVersions(ProtocolVersions),
KeyShare(KeyShareEntries),
PresharedKeyModes(PSKKeyExchangeModes),
PresharedKey(PresharedKeyOffer),
Cookie(PayloadU16),
ExtendedMasterSecretRequest,
CertificateStatusRequest(CertificateStatusRequest),
SignedCertificateTimestampRequest,
TransportParameters(Vec<u8>),
TransportParametersDraft(Vec<u8>),
EarlyData,
Unknown(UnknownExtension),
}
Variants
ECPointFormats(ECPointFormatList)
NamedGroups(NamedGroups)
SignatureAlgorithms(SupportedSignatureSchemes)
ServerName(ServerNameRequest)
SessionTicket(ClientSessionTicket)
Protocols(ProtocolNameList)
SupportedVersions(ProtocolVersions)
KeyShare(KeyShareEntries)
PresharedKeyModes(PSKKeyExchangeModes)
PresharedKey(PresharedKeyOffer)
Cookie(PayloadU16)
ExtendedMasterSecretRequest
CertificateStatusRequest(CertificateStatusRequest)
SignedCertificateTimestampRequest
TransportParameters(Vec<u8>)
TransportParametersDraft(Vec<u8>)
EarlyData
Unknown(UnknownExtension)
Implementations
sourceimpl ClientExtension
impl ClientExtension
pub fn get_type(&self) -> ExtensionType
sourceimpl ClientExtension
impl ClientExtension
sourcepub fn make_sni(dns_name: DnsNameRef<'_>) -> Self
pub fn make_sni(dns_name: DnsNameRef<'_>) -> Self
Make a basic SNI ServerNameRequest quoting hostname
.
Trait Implementations
sourceimpl Clone for ClientExtension
impl Clone for ClientExtension
sourcefn clone(&self) -> ClientExtension
fn clone(&self) -> ClientExtension
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for ClientExtension
impl Send for ClientExtension
impl Sync for ClientExtension
impl Unpin for ClientExtension
impl UnwindSafe for ClientExtension
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more