Expand description
Control message types with encode/decode. Draft-12 control message encoding and decoding.
Key changes from draft-11:
- Subscribe:
track_aliasremoved (moved to SubscribeOk) - SubscribeOk:
track_aliasadded (after request_id) - SubscribeError: trailing
track_aliasremoved - New messages: Publish (0x1D), PublishOk (0x1E), PublishError (0x1F)
- Same message type IDs for all other messages
- Same framing: type_id(vi) + payload_length(16) + payload
- Same even/odd KVP encoding
Re-exports§
pub use crate::error::CodecError;pub use crate::error::MAX_GOAWAY_URI_LENGTH;pub use crate::error::MAX_MESSAGE_LENGTH;pub use crate::error::MAX_NAMESPACE_TUPLE_SIZE;pub use crate::error::MAX_REASON_PHRASE_LENGTH;
Structs§
- Announce
- Announce
Cancel - Announce
Error - Announce
Ok - Client
Setup - Fetch
- Fetch
Cancel - Fetch
Error - FetchOk
- GoAway
- MaxRequest
Id - Publish
- PUBLISH message (type 0x1D).
- Publish
Error - PUBLISH_ERROR message (type 0x1F).
- Publish
Ok - PUBLISH_OK message (type 0x1E).
- Requests
Blocked - Server
Setup - Subscribe
- SUBSCRIBE message (type 0x03). Draft-12: no track_alias (moved to SubscribeOk).
- Subscribe
Announces - Subscribe
Announces Error - Subscribe
Announces Ok - Subscribe
Done - Subscribe
Error - SUBSCRIBE_ERROR message (type 0x05). Draft-12: no trailing track_alias.
- Subscribe
Ok - SUBSCRIBE_OK message (type 0x04). Draft-12: gains track_alias.
- Subscribe
Update - Track
Status - Track
Status Request - Unannounce
- Unsubscribe
- Unsubscribe
Announces
Enums§
- Control
Message - Fetch
Payload - Fetch
Type - Message
Type - Control message type IDs (draft-12).