Trait rpc_it::rpc::GetRequestContext
source · pub trait GetRequestContext: Debug + Send + Sync + 'static {
// Required method
fn get_req_con(&self) -> Option<&RequestContext>;
}
Expand description
Trick to get the request context from the generic type, and to cast [ConnectionBody
] to
dyn
[Connection
] trait object.