async_trait

Attribute Macro async_trait 

Source
#[async_trait]
Expand description

A proc macro attribute that wraps the input in an async_trait implementation, delegating to the appropriate async_trait implementation based on the target architecture.

On wasm32 architecture, it delegates to async_trait::async_trait(?Send). On all other architectures, it delegates to async_trait::async_trait.