Trait tls_api::async_as_sync::AsyncWrapperOps[][src]

pub trait AsyncWrapperOps<A>: Debug + Unpin + Send + 'static where
    A: Unpin
{ type SyncWrapper: Read + Write + Unpin + Send + 'static; fn impl_info() -> ImplInfo;
fn debug(w: &Self::SyncWrapper) -> &dyn Debug;
fn get_mut(w: &mut Self::SyncWrapper) -> &mut AsyncIoAsSyncIo<A>
Notable traits for AsyncIoAsSyncIo<S>
impl<S: AsyncRead + Unpin> Read for AsyncIoAsSyncIo<S>impl<S: AsyncWrite + Unpin> Write for AsyncIoAsSyncIo<S>
;
fn get_ref(w: &Self::SyncWrapper) -> &AsyncIoAsSyncIo<A>
Notable traits for AsyncIoAsSyncIo<S>
impl<S: AsyncRead + Unpin> Read for AsyncIoAsSyncIo<S>impl<S: AsyncWrite + Unpin> Write for AsyncIoAsSyncIo<S>
;
fn get_alpn_protocol(w: &Self::SyncWrapper) -> Result<Option<Vec<u8>>>; }
Expand description

Used by API implementors.

Associated Types

API-implementation of wrapper stream.

Wrapped object is always AsyncIoAsSyncIo.

Required methods

Which crates imlpements this?

Cast the wrapper to fmt::Debug or provide substitute debug. This is work around not all wrappers implementing fmt::Debug.

Unwrap the wrapper.

Unwrap the wrapper.

Get negotiated ALPN protocol.

Implementors