[][src]Trait tls_api::async_as_sync::AsyncIoAsSyncIoWrapper

pub trait AsyncIoAsSyncIoWrapper<S: Unpin>: Sized {
    fn get_mut(&mut self) -> &mut AsyncIoAsSyncIo<S>;

    fn with_context<F, R>(&mut self, cx: &mut Context, f: F) -> R
    where
        F: FnOnce(&mut Self) -> R
, { ... }
fn with_context_sync_to_async<F, R>(
        &mut self,
        cx: &mut Context,
        f: F
    ) -> Poll<Result<R>>
    where
        F: FnOnce(&mut Self) -> Result<R>
, { ... } }

Required methods

Important traits for AsyncIoAsSyncIo<S>
fn get_mut(&mut self) -> &mut AsyncIoAsSyncIo<S>

Loading content...

Provided methods

fn with_context<F, R>(&mut self, cx: &mut Context, f: F) -> R where
    F: FnOnce(&mut Self) -> R, 

fn with_context_sync_to_async<F, R>(
    &mut self,
    cx: &mut Context,
    f: F
) -> Poll<Result<R>> where
    F: FnOnce(&mut Self) -> Result<R>, 

Loading content...

Implementors

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

Loading content...