Struct jsonrpsee_ws_server::WsServer[][src]

pub struct WsServer { /* fields omitted */ }
Expand description

A WebSocket JSON RPC server.

Implementations

Register all methods from a Methods of provided RpcModule on this server. In case a method already is registered with the same name, no method is added and a Error::MethodAlreadyRegistered is returned. Note that the RpcModule is consumed after this call.

Returns a Vec with all the method names registered on this server.

Returns socket address to which the server is bound.

Start responding to connections requests. This will block current thread until the server is stopped.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.