Skip to main content

JsonRpcTarget

Trait JsonRpcTarget 

Source
pub trait JsonRpcTarget: Target {
    // Required methods
    fn method_name(&self) -> &'static str;
    fn params(&self) -> Vec<Value>;
}

Required Methods§

Source

fn method_name(&self) -> &'static str

Source

fn params(&self) -> Vec<Value>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§