pub trait RefTokioAsyncWrite {
// Required method
fn as_tokio_async_write(&self) -> Self::Write<'_>;
}Expand description
Tokio’s AsyncWrite by reference.
Required Methods§
Sourcefn as_tokio_async_write(&self) -> Self::Write<'_>
fn as_tokio_async_write(&self) -> Self::Write<'_>
Returns self with the guarantee that &Self implements TokioAsyncWrite 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.