pub struct ClientHello<'ssl>(/* private fields */);
Implementations§
Source§impl ClientHello<'_>
impl ClientHello<'_>
Sourcepub fn get_extension(&self, ext_type: ExtensionType) -> Option<&[u8]>
pub fn get_extension(&self, ext_type: ExtensionType) -> Option<&[u8]>
Returns the data of a given extension, if present.
This corresponds to SSL_early_callback_ctx_extension_get
.
pub fn ssl_mut(&mut self) -> &mut SslRef
pub fn ssl(&self) -> &SslRef
Sourcepub fn servername(&self, type_: NameType) -> Option<&str>
pub fn servername(&self, type_: NameType) -> Option<&str>
Returns the servername sent by the client via Server Name Indication (SNI).
Sourcepub fn client_version(&self) -> SslVersion
pub fn client_version(&self) -> SslVersion
Returns the version sent by the client in its Client Hello record.
Sourcepub fn version_str(&self) -> &'static str
pub fn version_str(&self) -> &'static str
Returns a string describing the protocol version of the connection.
Auto Trait Implementations§
impl<'ssl> Freeze for ClientHello<'ssl>
impl<'ssl> RefUnwindSafe for ClientHello<'ssl>
impl<'ssl> !Send for ClientHello<'ssl>
impl<'ssl> !Sync for ClientHello<'ssl>
impl<'ssl> Unpin for ClientHello<'ssl>
impl<'ssl> UnwindSafe for ClientHello<'ssl>
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