Skip to main content

RpcHandler

Trait RpcHandler 

Source
pub trait RpcHandler: Send + Sync {
    // Required method
    fn handle(&self, raw_data: &str) -> Result<Box<dyn ToRPCType>>;
}
Expand description

The type-erased handler trait

Required Methods§

Source

fn handle(&self, raw_data: &str) -> Result<Box<dyn ToRPCType>>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§