diff --git a/rpc-toolkit/src/handler/mod.rs b/rpc-toolkit/src/handler/mod.rs index 741621f..9e3ebb2 100644 --- a/rpc-toolkit/src/handler/mod.rs +++ b/rpc-toolkit/src/handler/mod.rs @@ -211,11 +211,16 @@ impl HandleAny for DynHandler { } } +#[allow(type_alias_bounds)] pub type HandlerArgsFor = HandlerArgs; #[derive(Debug, Clone)] -pub struct HandlerArgs { +pub struct HandlerArgs< + Context: IntoContext, + Params: Send + Sync = Empty, + InheritedParams: Send + Sync = Empty, +> { pub context: Context, pub parent_method: VecDeque<&'static str>, pub method: VecDeque<&'static str>,