pub struct TlsExtType(/* private fields */);
Expand description
TLS Extension Type
Implementations§
Source§impl TlsExtType
impl TlsExtType
Sourcepub const SERVER_NAME: TlsExtType
pub const SERVER_NAME: TlsExtType
server name.
This corresponds to TLSEXT_TYPE_server_name
.
Sourcepub const ALPN: TlsExtType
pub const ALPN: TlsExtType
application layer protocol negotiation.
This corresponds to TLSEXT_TYPE_application_layer_protocol_negotiation
.
Sourcepub fn from_raw(raw: c_uint) -> TlsExtType
pub fn from_raw(raw: c_uint) -> TlsExtType
Constructs an TlsExtType
from a raw value.
Trait Implementations§
Source§impl Clone for TlsExtType
impl Clone for TlsExtType
Source§fn clone(&self) -> TlsExtType
fn clone(&self) -> TlsExtType
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 moreimpl Copy for TlsExtType
Auto Trait Implementations§
impl Freeze for TlsExtType
impl RefUnwindSafe for TlsExtType
impl Send for TlsExtType
impl Sync for TlsExtType
impl Unpin for TlsExtType
impl UnwindSafe for TlsExtType
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