[][src]Struct tokio_async_io::Async

pub struct Async<T: AsRawFd>(_);

Implementations

impl<T: AsRawFd> Async<T>[src]

pub fn new(io: T) -> Result<Self>[src]

pub fn get_ref(&self) -> &T[src]

pub async fn read_with<'_, R>(
    &'_ self,
    __arg1: impl FnMut(&T) -> Result<R>
) -> Result<R>
[src]

pub async fn write_with<'_, R>(
    &'_ self,
    __arg1: impl FnMut(&T) -> Result<R>
) -> Result<R>
[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for Async<T>

impl<T> Send for Async<T> where
    T: Send

impl<T> Sync for Async<T> where
    T: Sync

impl<T> Unpin for Async<T> where
    T: Unpin

impl<T> !UnwindSafe for Async<T>

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.