Struct jsonrpc_ws_server::ServerBuilder[][src]

pub struct ServerBuilder<M: Metadata, S: Middleware<M>> { /* fields omitted */ }
Expand description

Builder for WebSockets server

Implementations

Creates new ServerBuilder

Creates new ServerBuilder

Utilize existing event loop executor to poll RPC results.

Sets a meta extractor.

Allowed origins.

Allowed hosts.

Session stats

Sets a request middleware. Middleware will be invoked before each handshake request. You can either terminate the handshake in the middleware or run a default behaviour after.

Maximal number of concurrent connections this server supports. Default: 100

Maximal size of the payload (in bytes) Default: 5MB

The maximum size to which the incoming buffer can grow. Default: 10,485,760

The maximum size to which the outgoing buffer can grow. Default: 10,485,760

Starts a new WebSocket server in separate thread. Returns a Server handle which closes the server when droped.

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.