Trait tls_api::TlsStreamDyn [−][src]
Trait implemented by all TlsStream
objects.
Provide access to some TLS stream properties (only ALPN at the moment.)
Required methods
fn get_alpn_protocol(&self) -> Result<Option<Vec<u8>>>
[src]
Get negotiated ALPN protocol negotiated.
fn impl_info(&self) -> ImplInfo
[src]
Implementation info for this stream (e. g. which crate provides it).
fn get_socket_dyn_mut(&mut self) -> &mut dyn AsyncSocket
[src]
Get the underlying socket.
fn get_socket_dyn_ref(&self) -> &dyn AsyncSocket
[src]
Get the underlying socket.
Implementors
impl TlsStreamDyn for TlsStream
[src]
fn get_alpn_protocol(&self) -> Result<Option<Vec<u8>>>
[src]
fn impl_info(&self) -> ImplInfo
[src]
fn get_socket_dyn_mut(&mut self) -> &mut dyn AsyncSocket
[src]
fn get_socket_dyn_ref(&self) -> &dyn AsyncSocket
[src]
impl<A, O> TlsStreamDyn for TlsStreamOverSyncIo<A, O> where
A: AsyncSocket,
O: AsyncWrapperOps<A>,
[src]
A: AsyncSocket,
O: AsyncWrapperOps<A>,