Skip to main content

Module message

Module message 

Source
Expand description

Control message types with encode/decode. Draft-12 control message encoding and decoding.

Key changes from draft-11:

  • Subscribe: track_alias removed (moved to SubscribeOk)
  • SubscribeOk: track_alias added (after request_id)
  • SubscribeError: trailing track_alias removed
  • 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
AnnounceCancel
AnnounceError
AnnounceOk
ClientSetup
Fetch
FetchCancel
FetchError
FetchOk
GoAway
MaxRequestId
Publish
PUBLISH message (type 0x1D).
PublishError
PUBLISH_ERROR message (type 0x1F).
PublishOk
PUBLISH_OK message (type 0x1E).
RequestsBlocked
ServerSetup
Subscribe
SUBSCRIBE message (type 0x03). Draft-12: no track_alias (moved to SubscribeOk).
SubscribeAnnounces
SubscribeAnnouncesError
SubscribeAnnouncesOk
SubscribeDone
SubscribeError
SUBSCRIBE_ERROR message (type 0x05). Draft-12: no trailing track_alias.
SubscribeOk
SUBSCRIBE_OK message (type 0x04). Draft-12: gains track_alias.
SubscribeUpdate
TrackStatus
TrackStatusRequest
Unannounce
Unsubscribe
UnsubscribeAnnounces

Enums§

ControlMessage
FetchPayload
FetchType
MessageType
Control message type IDs (draft-12).