#[derive(AsyncRead)]
{
// Attributes available to this derive:
#[read]
}
Expand description
#[derive(AsyncRead)]:
Derives tokio::io::AsyncRead for the given struct.
Supported attributes:
#[read]: Marks the field as a read stream.#[read(as_ref)]: Delegates the field to the inner type usingAsRef/AsMut.#[read(deref)]: Delegates the field to the inner type usingDeref/DerefMut.#[read(<function>=<override>)]: Overrides the default<function>method with the given override function.