Skip to main content

Extension

Derive Macro Extension 

#[derive(Extension)]
{
    // Attributes available to this derive:
    #[extension]
}
Expand description

Derive an implementation of rama_core::extensions::Extension for a type.

Note that all type parameters of the derived type must satisfy: Any + Send + Sync + Debug + 'static.

Optional derive attributes:

  • #[extension(tags(...))]: implement one or more marker traits used to group extensions in rustdoc (tls, http, net, ua, proxy, ws, dns, grpc).