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_
helpers http-helpers - Shared HTTP utilities.
- id_
providers server - Subscription ID providers.
- middleware
server - Middleware for the RPC service.
- server
server - Shared modules for the JSON-RPC servers.
- traits
- Traits
Structs§
- Json
RawValue - Reference to a range of bytes encompassing a single valid JSON value in the input data.
Enums§
- Json
Value - Represents any valid JSON value.
Constants§
- TEN_
MB_ SIZE_ BYTES - Ten megabytes.
Traits§
- Deserialize
Owned - 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
Tinto a boxedRawValue.
Type Aliases§
- BoxError
- Type erased error.
- RpcResult
- JSON-RPC result.
- Subscription
Result - The return type if the subscription wants to return
Result.
Derive Macros§
- Serialize
- Derive macro available if serde is built with
features = ["derive"].