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
Currently in proc macros one implementation for named parameter(s) exist here
The reason why it's not used is because it won't work to have a serde implementation inside a trait impl with generic type parameters, thus one would a get compile error such as can't use generic parameters from outer function.
The reason for this is how the RpcServer trait is generated.
pubtraitRpcServer<T>{// defined methods without implsasyncfnfoo() -> Result<(),Error>;///Collects all the methods and subscriptions defined in the trait and adds them into a single `RpcModule`.fninto_rpc(self) -> jsonrpsee::RpcModule<Self>{// registering methods and decoding params goes here (which is problematic for serde impls)}}
The text was updated successfully, but these errors were encountered:
Currently in proc macros one implementation for named parameter(s) exist here
The reason why it's not used is because it won't work to have a serde implementation inside a trait impl with generic type parameters, thus one would a get compile error such as
can't use generic parameters from outer function
.The reason for this is how the
RpcServer trait
is generated.The text was updated successfully, but these errors were encountered: