Crate jsonrpsee_core

Source
Expand description

Shared utilities for jsonrpsee.

Re-exports§

pub use client::Error as ClientError;client
pub use error::RegisterMethodError;
pub use error::StringError;

Modules§

clientclient
Shared utilities for jsonrpsee clients.
error
Error type.
http_helpershttp-helpers
Shared HTTP utilities.
id_providersserver
Subscription ID providers.
params
RPC Parameters. RPC parameters.
serverserver
Shared modules for the JSON-RPC servers.
tracing
Shared tracing helpers to trace RPC calls.
traits
Traits

Macros§

rpc_paramsclient
Convert the given values to a crate::params::ArrayParams as expected by a jsonrpsee Client (http or websocket).

Structs§

JsonRawValue
Reference to a range of bytes encompassing a single valid JSON value in the input data.

Enums§

Cow
A clone-on-write smart pointer.
JsonValue
Represents any valid JSON value.

Constants§

TEN_MB_SIZE_BYTES
Ten megabytes.

Traits§

DeserializeOwned
A data structure that can be deserialized without borrowing any data from the deserializer.
Serialize
A data structure that can be serialized into any data format supported by Serde.

Functions§

to_json_raw_value
Convert a T into a boxed RawValue.
to_json_value
Convert a T into serde_json::Value which is an enum that can represent any valid JSON data.

Type Aliases§

BoxError
Type erased error.
EmptyServerParams
Empty server RpcParams type to use while registering modules.
RpcResult
JSON-RPC result.
SubscriptionResult
The return type if the subscription wants to return Result.

Attribute Macros§

async_trait

Derive Macros§

Serialize