[][src]Struct awak::io::Async

pub struct Async<T> { /* fields omitted */ }

Implementations

impl<T> Async<T>[src]

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

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

pub async fn readable<'_>(&'_ self) -> Result<()>[src]

pub async fn writable<'_>(&'_ self) -> Result<()>[src]

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

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

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

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

Trait Implementations

impl<T: Read> AsyncRead for Async<T>[src]

impl<T, '_> AsyncRead for &'_ Async<T> where
    &'a T: Read
[src]

impl<T: Write> AsyncWrite for Async<T>[src]

impl<T, '_> AsyncWrite for &'_ Async<T> where
    &'a T: Write
[src]

impl<T: Debug> Debug for Async<T>[src]

impl<T> Drop for Async<T>[src]

Auto Trait Implementations

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

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

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

impl<T> Unpin for Async<T>

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

Blanket Implementations

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

impl<R> AsyncReadExt for R where
    R: AsyncRead + ?Sized
[src]

impl<W> AsyncWriteExt for W where
    W: AsyncWrite + ?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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,