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.
Required Methods§
fn get_pubsub_method(&self, name: &str) -> Option<PubSubRPCMethod<'_>>
fn name(&self) -> String
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".