2 ms·
`#[async_trait]` does dynamic dispatch, this approach does not. If you need to use something like `Box<dyn MyTrait>`, then you'll want to continue using `#[asy
by WhyNotHugo 3y ago
`#[async_trait]` does dynamic dispatch, this approach does not.
If you need to use something like `Box<dyn MyTrait>`, then you'll want to continue using `#[async_trait]`.