1 unstable release
| 0.0.7 | Jan 15, 2020 |
|---|
#262 in #base
2MB
34K
SLoC
Tari Comms Middleware
lib.rs:
Comms Middleware
Comms Middleware contains the middleware layers that can be composed when processing inbound and outbound comms messages.
For example, should you want your messages to be encrypted, you'll add the EncryptionLayer to the outbound middleware stack and the DecryptionLayer to the inbound stack.
Middlewares use tower_layer and tower_service. A Middleware is simply any service which
is Service<InboundMessage, Response = (), Error = MiddlewareError>. This service will usually
be composed of other services by using the tower_util::ServiceBuilder.
Dependencies
~25MB
~390K SLoC