From 4faf4b4e9595ca6f0946700bdd95c8cbf19febd7 Mon Sep 17 00:00:00 2001 From: Aiden McClelland Date: Wed, 24 Jan 2024 12:31:20 -0700 Subject: [PATCH] default args for HandlerArgs --- rpc-toolkit/src/handler/mod.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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>,