Trait RefTokioAsyncRead

Source
pub trait RefTokioAsyncRead {
    // Required method
    fn as_tokio_async_read(&self) -> Self::Read<'_>;
}
Expand description

Tokio’s AsyncRead by reference.

Required Methods§

Source

fn as_tokio_async_read(&self) -> Self::Read<'_>

Returns self with the guarantee that &Self implements TokioAsyncRead encoded in a way which is visible to Rust’s type system.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T: ?Sized> RefTokioAsyncRead for T
where for<'a> &'a T: TokioAsyncRead,