Expand description
Internal SDK–Gateway wire contract.
Published only as a dependency of relaygate-sdk; it is not a stable
application API.
This crate owns framing and identifiers only. Socket ownership, reconnect, admission, and routing policy belong to the SDK and Gateway crates.
Structs§
- Bearer
Token - Bounded operation credential carried only by
PUBLISHandDIAL. - Binding
Id - Identifies one live route binding.
- Destination
- A fully specified exact routing key.
- Destination
Name - A validated dot-separated destination name within a
Namespace. - Frame
Codec - Length-delimited codec for SDK–Gateway
Framevalues. - Namespace
- A validated single-label tenant or application routing namespace.
- PipeId
- Identifies one Pipe as its origin Relay session plus a session-local counter.
- Session
Id - Identifies one SDK-Gateway transport-session incarnation.
Enums§
- Error
Code - Stable wire error codes whose discriminants are part of protocol version 3.
- Frame
- Wire messages exchanged within one SDK–Gateway session.
- Peer
Observation - Whether a peer may have observed a failed control operation.
- Protocol
Error - Failures raised while encoding or decoding an SDK–Gateway frame.
Constants§
- DEFAULT_
MAX_ FRAME_ LEN - Default payload limit a
FrameCodecaccepts, in bytes. - MAX_
BEARER_ TOKEN_ BYTES - Maximum UTF-8 byte length of an operation bearer token.
- MAX_
HELLO_ FRAME_ LEN - HELLO carries no credential or payload; PUBLISH and DIAL carry authorization.