Struct tokio_jsonrpc::server::AbstractServer [] [src]

pub struct AbstractServer<S: Server>(_);

An RPC server wrapper with dynamic dispatch.

This server wraps another server and converts it into a common ground, so multiple different servers can be used as trait objects. Basically, it boxes the futures it returns and converts the result into serde_json::Value. It can then be used together with ServerChain easilly. Note that this conversion incurs runtime costs.

Methods

impl<S: Server> AbstractServer<S>
[src]

Wraps another server into an abstract server.

Unwraps the abstract server and provides the one inside back.

Trait Implementations

impl<S: Server> Server for AbstractServer<S>
[src]

The successfull result of the RPC call.

The result of the RPC call Read more

The result of the RPC call. Read more

Called when the client requests something. Read more

Called when the client sends a notification. Read more

Called when the endpoint is initialized. Read more