Skip to main content

PubSubRPCService

Trait PubSubRPCService 

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

Source

fn get_pubsub_method(&self, name: &str) -> Option<PubSubRPCMethod<'_>>

Source

fn name(&self) -> String

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§