Struct boring_imp::ssl::ClientHello
source · pub struct ClientHello(/* 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.
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 RefUnwindSafe for ClientHello
impl !Send for ClientHello
impl !Sync for ClientHello
impl Unpin for ClientHello
impl UnwindSafe for ClientHello
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