macro_rules! raw_request_handler {
    (async fn $name:ident<$a:ty> $($tt:tt)*) => { ... };
    (async fn $name:ident<$a:ty, $b:ty> $($tt:tt)*) => { ... };
    (
		async fn<$($gen:ident, $gen2:ident)?> $name:ident<$a:ty, $b:ty, $d:ty>(
			$req:ident: $req_ty:ty
		) $($tt:tt)*
	) => { ... };
    (
		async fn<$($gen:ident, $gen2:ident)?> $name:ident<$a:ty, $b:ty, $d:ty>(
			$req:ident: $req_ty:ty,
			$($data:ident: $data_ty:ty),*
		) -> $ret_ty:ty
		$block:block
	) => { ... };
}
Expand description

Helper to implement a RequestHandler.

Note

Even though you need to specify the type without a reference that actual type will have a reference.

Usage

raw_request_handler! {
	async fn name<Action>(
		req: ReqType,
		some: Data
	) -> Result<Response> {}
}