karyon_jsonrpc::server::pubsub_service

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

Implementors§