Module server

Module server 

Source
Expand description

This module contains all the types needed to have a running RpcServer.

Structs§

RpcServer
RpcServer receives and process different requests from the RpcClient
RpcServerPort
RpcServerPort is what a RpcServer contains to handle different services/modules
ServerEventsSender
Structure to send events to the server from outside. It’s a wrapper for a tokio::sync::mpsc::UnboundedSender from a channel so that we can send events from another thread e.g for a Websocket listener.
ServerModuleDeclaration
Used to store all the procedures in the loaded_modules fields inside RpcServerPort
ServerModuleProcedure

Enums§

ServerError
Enum of errors which should be exposed to the client and turned into a crate::rpc_protocol::RemoteError
ServerInternalError
Enum of errors which are internal or have no sense to be exposed to the client
ServerResultError
Error returned by a server function could be an error which it’s possible and useful to communicate or not.

Type Aliases§

ServerResult
Result type for all RpcServer functions