pub trait RpcRequest {
type Response;
// Required method
fn variant_name(&self) -> &'static str;
}Expand description
Marker trait for request types that can identify their expected response.
Used by generic clients to ensure type safety between requests and responses.
Required Associated Types§
Required Methods§
Sourcefn variant_name(&self) -> &'static str
fn variant_name(&self) -> &'static str
Get the request variant name (for logging/debugging).