Skip to main content

Module util

Module util 

Source
Expand description

Utility functions and types

Structs§

MatchDispatch
Role-agnostic helper for pattern-matching on untyped JSON-RPC messages.
MatchDispatchFrom
Role-aware helper for pattern-matching on untyped JSON-RPC requests.

Functions§

initialize_params_for_version
Rewrite the params of an initialize request for the protocol version selected that a version-agnostic forwarder, such as the conductor, selected for it.
json_cast
Cast from N to M by serializing/deserialization to/from JSON.
json_cast_params
Cast incoming request/notification params into a typed payload.
run_until
Run background until foreground completes.