Module medea_jason::rpc[][src]

Abstraction over RPC transport.

Modules

websocket

Implementation of the abstractions around WebSocket transport.

Structs

ApiUrl

Url to which transport layer will connect.

BackoffDelayer

Delayer that increases delay time by provided multiplier on each call.

ConnectionInfo

Information about RpcSession connection.

Heartbeat

Detector of connection loss via ping/pong mechanism.

HeartbeatError

Errors that may occur in Heartbeat.

IdleTimeout

Idle timeout of WebSocketRpcClient.

PingInterval

Ping interval of WebSocketRpcClient.

ReconnectHandle

Handle that JS side can reconnect to the Medea media server on a connection loss with.

WebSocketRpcClient

Client API RPC client to talk with server via WebSocket.

WebSocketRpcSession

Client to talk with server via Client API RPC.

WebSocketRpcTransport

WebSocket RpcTransport between a client and a server.

Enums

ClientDisconnect

Reasons of closing WebSocket RPC connection by a client side.

CloseMsg

Connection with remote was closed.

CloseReason

Reasons of closing by client side and server side.

ClosedStateReason

The reason of why WebSocketRpcClient/RpcTransport went into closed state.

ConnectionInfoParseError

Errors which can occur while ConnectionInfo parsing from the str.

RpcClientError

Errors that may occur in WebSocketRpcClient.

SessionError

Errors which are can be returned from the WebSocketRpcSession.

SessionState

State for the WebSocketRpcSession.

TransportError

Errors that may occur when working with WebSocketRpcClient.

Traits

RpcSession

Client to talk with server via Client API RPC.

RpcTransport

RPC transport between a client and a server.