Expand description
§JetStream Rpc
Defines Rpc primitives for JetStream.
Of note is the Protocol trait which is meant to be used with the service attribute macro.
Re-exports§
pub use framer::*;
Modules§
Structs§
- Framed
- A unified
StreamandSinkinterface to an underlying I/O object, using theEncoderandDecodertraits to encode and decode frames. - Mux
- Client Mux
- Rerror
- Rlerror
- Router
- RpcCall
- Rversion
- version – negotiate protocol version
- TagPool
notify - Tversion
- version – negotiate protocol version
Enums§
Constants§
- HEADER_
KEY_ JETSTREAM_ PROTO - MIMETYPE_
JETSTREAM - MIMETYPE_
JSON - MIMETYPE_
OCTET_ STREAM - MIMETYPE_
XML - RJETSTREAMERROR
- RLERROR
- RVERSION
- TVERSION
Traits§
- AnyServer
- Decoder
- Decoding of frames via buffers.
- Encoder
- Trait of helper objects to write out messages as bytes, for use with
FramedWrite. - Handler
- Incoming
- Into
Error - IntoError trait allows conversion of various error types into Jetstream Error.
- Message
native - A trait representing a message that can be encoded and decoded.
- Protocol
- Defines the request and response types for the JetStream protocol.