Expand description
RoFr is a general-purpose framework for creating RPC-like APIs in Rust using NATS messaging. It also happens to be good for building robot software.
§API stability
While this crate is pre v1, the API can and will change without warning.
Re-exports§
pub use async_trait;pub use futures;
Modules§
- header
- Header keys used in various NATS metadata.
Structs§
- Bytes
- A cheaply cloneable and sliceable chunk of contiguous memory.
- Cluster
- Cluster definition.
- Endpoint
- Endpoint definition.
- Error
- Error type for service endpoints.
- Request
- Request wrapper type for endpoint request bodies
- Request
Context - Request context.
- Response
- Successful response wrapper
- Service
- Service definition.
- Service
State - Shared service state.
- Stream
- Stream definition.
- Stream
Context - Stream context.
Enums§
- Client
Error - Client error.
Traits§
- Endpoint
Handler - Service
Context - Marker trait for service context types.
- Stream
Handler
Functions§
- generate_
request_ id - Generates a new unique request id.