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

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

Async IO object as sync IO.

Used in API implementations.

Methods

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

Important traits for AsyncIoAsSyncIo<S>
pub fn new(inner: S) -> AsyncIoAsSyncIo<S>[src]

Wrap sync object in this wrapper.

pub unsafe fn set_context(&mut self, cx: &mut Context)[src]

Store async context inside this object

pub unsafe fn unset_context(&mut self)[src]

Clear async context

Trait Implementations

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

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: Unpin + Sync> Sync 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

impl<S> Unpin for AsyncIoAsSyncIo<S>

impl<S> UnwindSafe for AsyncIoAsSyncIo<S> where
    S: UnwindSafe

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.