alloy_json_rpc

Trait RpcParam

source
pub trait RpcParam:
    Serialize
    + Clone
    + Debug
    + Send
    + Sync
    + Unpin { }
Expand description

An object that can be used as a JSON-RPC parameter.

This marker trait is blanket-implemented for every qualifying type. It is used to indicate that a type can be used as a JSON-RPC parameter.

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<T> RpcParam for T
where T: Serialize + Clone + Debug + Send + Sync + Unpin,