Crate logimesh

Source
Expand description

logimesh is a Rust RPC Microservice 2.0 framework.

Re-exports§

pub use ::tarpc::serde;
pub use ::tarpc::tokio_serde;
pub use ::tarpc::tokio_util;
pub use ::futures;
pub use ::tracing;

Modules§

client
Provides a client that connects to a server and sends multiplexed requests.
component
The component is a type that carries the service instance crate::server::Serve and endpoint information crate::component::Endpoint.
context
requst-response context
net
net tool
server
Server component.
trace
Provides building blocks for tracing distributed programs.
transport
A Transport which implements AsyncRead and AsyncWrite.

Macros§

tokio_tcp_listen
Listen a TCP server.

Structs§

Request
A request from a client to a server.
Response
A response from a server to a client.
ServerError
An error indicating the server aborted the request early, e.g., due to request throttling.

Enums§

ChannelError
Critical errors that result in a Channel disconnecting.
ClientMessage
A message from a client to a server.

Traits§

IntoAnyResult
Convert from Result<T, BoxError> to Result<T, anyhow::Error>
RequestName
Implemented by the request types generated by tarpc::service.
Transport
A bidirectional stream (Sink + Stream) of messages.

Type Aliases§

BoxError
Alias for a type-erased error type.

Attribute Macros§

component
This macro generates the machinery used by both the client and server.
derive_serde
A helper attribute to avoid a direct dependency on Serde.