Struct tls_api::async_as_sync::AsyncIoAsSyncIo[][src]

pub struct AsyncIoAsSyncIo<S: Unpin> { /* fields omitted */ }

Async IO object as sync IO.

Used in API implementations.

Implementations

impl<S: Unpin> AsyncIoAsSyncIo<S>[src][]

pub fn get_inner_mut(&mut self) -> &mut S[src][]

Get a mutable reference to a wrapped stream

pub fn get_inner_ref(&self) -> &S[src][]

And a reference to a wrapped stream

pub fn new(inner: S) -> AsyncIoAsSyncIo<S>

Notable traits for AsyncIoAsSyncIo<S>

impl<S: AsyncRead + Unpin> Read for AsyncIoAsSyncIo<S>impl<S: AsyncWrite + Unpin> Write for AsyncIoAsSyncIo<S>
[src][]

Wrap sync object in this wrapper.

Trait Implementations

impl<S: Debug + Unpin> Debug for AsyncIoAsSyncIo<S>[src][+]

impl<S: AsyncRead + Unpin> Read for AsyncIoAsSyncIo<S>[src][+]

impl<S: Unpin + Send> Send for AsyncIoAsSyncIo<S>[src]

impl<S: AsyncWrite + Unpin> Write for AsyncIoAsSyncIo<S>[src][+]

Auto Trait Implementations

impl<S> RefUnwindSafe for AsyncIoAsSyncIo<S> where
    S: RefUnwindSafe
[src]

impl<S> Sync for AsyncIoAsSyncIo<S> where
    S: Sync
[src]

impl<S> Unpin for AsyncIoAsSyncIo<S>[src]

impl<S> UnwindSafe for AsyncIoAsSyncIo<S> where
    S: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src][+]

impl<T> Borrow<T> for T where
    T: ?Sized
[src][+]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src][+]

impl<T> From<T> for T[src][+]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src][+]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src][+]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src][+]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.