Skip to main content

async_trait

Attribute Macro async_trait 

Source
#[async_trait]
Expand description

Re-export of async_trait::async_trait so interceptor authors don’t need a direct async-trait dependency.

#[connectrpc::async_trait]
impl connectrpc::Interceptor for MyInterceptor { /* ... */ }

The macro expansion references only core and the prelude — there is no runtime async-trait requirement.