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
- RpcServer
Port - RpcServerPort is what a RpcServer contains to handle different services/modules
- Server
Events Sender - Structure to send events to the server from outside. It’s a wrapper for a
tokio::sync::mpsc::UnboundedSenderfrom a channel so that we can send events from another thread e.g for a Websocket listener. - Server
Module Declaration - Used to store all the procedures in the
loaded_modulesfields insideRpcServerPort - Server
Module Procedure
Enums§
- Server
Error - Enum of errors which should be exposed to the client and turned into a
crate::rpc_protocol::RemoteError - Server
Internal Error - Enum of errors which are internal or have no sense to be exposed to the client
- Server
Result Error - Error returned by a server function could be an error which it’s possible and useful to communicate or not.
Type Aliases§
- Server
Result - Result type for all
RpcServerfunctions