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 informationcrate::component::Endpoint
. - context
- requst-response context
- net
- net tool
- server
- Server component.
- trace
- Provides building blocks for tracing distributed programs.
- transport
- A
Transport
which implementsAsyncRead
andAsyncWrite
.
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.
- Server
Error - An error indicating the server aborted the request early, e.g., due to request throttling.
Enums§
- Channel
Error - Critical errors that result in a Channel disconnecting.
- Client
Message - A message from a client to a server.
Traits§
- Into
AnyResult - Convert from
Result<T, BoxError>
toResult<T, anyhow::Error>
- Request
Name - 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.