Skip to main content

Crate jsonrpsee_core

Crate jsonrpsee_core 

Source
Expand description

Shared utilities for jsonrpsee.

Vendored from jsonrpsee, Copyright (c) 2019-2021 Parity Technologies (UK) Ltd., licensed under the MIT License (see crates/rpc/jsonrpsee/LICENSE).

Re-exports§

pub use error::RegisterMethodError;
pub use error::SubscriptionError;

Modules§

error
Error type.
http_helpershttp-helpers
Shared HTTP utilities.
id_providersserver
Subscription ID providers.
middlewareserver
Middleware for the RPC service.
serverserver
Shared modules for the JSON-RPC servers.
traits
Traits

Structs§

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

Enums§

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§

classify_message
Skips the leading whitespace of a JSON-RPC message and tells a single request from a batch by its first byte.
to_json_raw_value
Convert a T into a boxed RawValue.

Type Aliases§

BoxError
Type erased error.
RpcResult
JSON-RPC result.
SubscriptionResult
The return type if the subscription wants to return Result.

Derive Macros§

Serialize
Derive macro available if serde is built with features = ["derive"].