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>>>; }

Used by API implementors.

Associated Types

type SyncWrapper: Read + Write + Unpin + Send + 'static[src]

API-implementation of wrapper stream.

Wrapped object is always AsyncIoAsSyncIo.

Loading content...

Required methods

fn impl_info() -> ImplInfo[src]

Which crates imlpements this?

fn debug(w: &Self::SyncWrapper) -> &dyn Debug[src]

Cast the wrapper to fmt::Debug or provide substitute debug. This is work around not all wrappers implementing fmt::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>
[src]

Unwrap the wrapper.

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>
[src]

Unwrap the wrapper.

fn get_alpn_protocol(w: &Self::SyncWrapper) -> Result<Option<Vec<u8>>>[src]

Get negotiated ALPN protocol.

Loading content...

Implementors

Loading content...