[][src]Trait nimiq_rpc_server::jsonrpc::Handler

pub trait Handler: Send + Sync {
    fn get_method(
        &self,
        name: &str
    ) -> Option<fn(_: &Self, params: Array) -> Result<JsonValue, JsonValue>>; fn authorize(
        &self,
        _username: &str,
        _password: &str
    ) -> Result<(), AuthenticationError> { ... } }

Required methods

fn get_method(
    &self,
    name: &str
) -> Option<fn(_: &Self, params: Array) -> Result<JsonValue, JsonValue>>

Loading content...

Provided methods

fn authorize(
    &self,
    _username: &str,
    _password: &str
) -> Result<(), AuthenticationError>

Loading content...

Implementors

Loading content...