Rpc

Trait Rpc 

Source
pub trait Rpc {
    // Required method
    fn call<P: Serialize, R: DeserializeOwned>(
        &self,
        method: &str,
        params: P,
    ) -> Result<R, Error>;
}

Required Methods§

Source

fn call<P: Serialize, R: DeserializeOwned>( &self, method: &str, params: P, ) -> Result<R, Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<C> Rpc for HttpClient<C>
where C: Encoder,