You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It complains that MyAsyncTrait cannot be made into an object. My guess is that either the double-code generation breaks something OR that builder-pattern would need to place the #[async_trait] in its generated code too.
This is currently blocking me from using the builder pattern.
If this is too hard to implement, Rust aims to support a first version of stable async traits (not via library) from 1.74, which should land in July. Then this might be resolved. What do you think?
The text was updated successfully, but these errors were encountered:
I cannot get async_trait and builder-pattern to play nice together.
My test (assume MyAsyncTrait exists):
It complains that MyAsyncTrait cannot be made into an object. My guess is that either the double-code generation breaks something OR that builder-pattern would need to place the
#[async_trait]
in its generated code too.This is currently blocking me from using the builder pattern.
If this is too hard to implement, Rust aims to support a first version of stable async traits (not via library) from 1.74, which should land in July. Then this might be resolved. What do you think?
The text was updated successfully, but these errors were encountered: