pub trait PubSubRPCService: Sync + Send {
// Required methods
fn get_pubsub_method(&self, name: &str) -> Option<PubSubRPCMethod<'_>>;
fn name(&self) -> String;
}
Expand description
Defines the interface for an RPC service.
pub trait PubSubRPCService: Sync + Send {
// Required methods
fn get_pubsub_method(&self, name: &str) -> Option<PubSubRPCMethod<'_>>;
fn name(&self) -> String;
}
Defines the interface for an RPC service.