pub trait TlsStreamDyn: AsyncSocket {
// Required methods
fn get_alpn_protocol(&self) -> Result<Option<Vec<u8>>>;
fn impl_info(&self) -> ImplInfo;
fn get_socket_dyn_mut(&mut self) -> &mut dyn AsyncSocket;
fn get_socket_dyn_ref(&self) -> &dyn AsyncSocket;
}
Expand description
Trait implemented by all TlsStream
objects.
Provide access to some TLS stream properties (only ALPN at the moment.)
Required Methods§
Sourcefn get_alpn_protocol(&self) -> Result<Option<Vec<u8>>>
fn get_alpn_protocol(&self) -> Result<Option<Vec<u8>>>
Get negotiated ALPN protocol negotiated.
Sourcefn impl_info(&self) -> ImplInfo
fn impl_info(&self) -> ImplInfo
Implementation info for this stream (e. g. which crate provides it).
Sourcefn get_socket_dyn_mut(&mut self) -> &mut dyn AsyncSocket
fn get_socket_dyn_mut(&mut self) -> &mut dyn AsyncSocket
Get the underlying socket.
Sourcefn get_socket_dyn_ref(&self) -> &dyn AsyncSocket
fn get_socket_dyn_ref(&self) -> &dyn AsyncSocket
Get the underlying socket.