pub trait AsyncWriteElement: Sized + Element {
// Provided method
fn async_write_element<W: AsyncWrite + Unpin>(
&self,
header: &Header,
w: &mut W,
) -> impl Future<Output = Result<()>> { ... }
}Available on crate feature
tokio only.Expand description
Write an element to a writer provided the header asynchronously.
Provided Methods§
Sourcefn async_write_element<W: AsyncWrite + Unpin>(
&self,
header: &Header,
w: &mut W,
) -> impl Future<Output = Result<()>>
fn async_write_element<W: AsyncWrite + Unpin>( &self, header: &Header, w: &mut W, ) -> impl Future<Output = Result<()>>
Write an element to a writer asynchronously.
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.