Skip to main content

RpcRequest

Trait RpcRequest 

Source
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§

Source

type Response

The response type expected for this request.

Required Methods§

Source

fn variant_name(&self) -> &'static str

Get the request variant name (for logging/debugging).

Implementors§