Expand description
Utility functions and types
Structs§
- Match
Dispatch - Role-agnostic helper for pattern-matching on untyped JSON-RPC messages.
- Match
Dispatch From - Role-aware helper for pattern-matching on untyped JSON-RPC requests.
- Type
Notification - Builder for pattern-matching on untyped JSON-RPC notifications.
Functions§
- both
- Run two fallible futures concurrently, returning when both complete successfully or when either fails.
- internal_
error - Creates an internal error with the given message
- into_
jsonrpc_ error - Convert a
crate::Errorinto acrate::jsonrpcmsg::Error - json_
cast - Cast from
NtoMby serializing/deserialization to/from JSON. - json_
cast_ params - Cast incoming request/notification params into a typed payload.
- parse_
error - Creates a parse error with the given message
- process_
stream_ concurrently - Process items from a stream concurrently.
- run_
until - Run
backgrounduntilforegroundcompletes.