Derive Macro AsyncWrite

Source
#[derive(AsyncWrite)]
{
    // Attributes available to this derive:
    #[write]
}
Expand description

#[derive(AsyncWrite)]:

Derives tokio::io::AsyncWrite for the given struct.

Supported attributes:

  • #[write]: Marks the field as a write stream.
  • #[write(as_ref)]: Delegates the field to the inner type using AsRef/AsMut.
  • #[write(deref)]: Delegates the field to the inner type using Deref/DerefMut.
  • #[write(<function>=<override>)]: Overrides the default <function> method with the given override function.