Expand description
Control message types with encode/decode.
Re-exports§
pub use crate::types::check_group_range;pub use crate::types::check_location_range;pub use crate::types::check_open_ended_group_range;
Structs§
- Client
Setup - CLIENT_SETUP message (type 0x20).
- Fetch
- FETCH message (type 0x16).
- Fetch
Cancel - FETCH_CANCEL message (type 0x17).
- Fetch
Error - FETCH_ERROR message (type 0x19).
- FetchOk
- FETCH_OK message (type 0x18).
- GoAway
- GOAWAY message (type 0x10).
- MaxRequest
Id - MAX_REQUEST_ID message (type 0x15).
- Publish
- PUBLISH message (type 0x1D).
- Publish
Done - PUBLISH_DONE message (type 0x0B).
- Publish
Error - PUBLISH_ERROR message (type 0x1F).
- Publish
Namespace - PUBLISH_NAMESPACE message (type 0x06).
- Publish
Namespace Cancel - PUBLISH_NAMESPACE_CANCEL message (type 0x0C).
- Publish
Namespace Done - PUBLISH_NAMESPACE_DONE message (type 0x09).
- Publish
Namespace Error - PUBLISH_NAMESPACE_ERROR message (type 0x08).
- Publish
Namespace Ok - PUBLISH_NAMESPACE_OK message (type 0x07).
- Publish
Ok - PUBLISH_OK message (type 0x1E).
- Requests
Blocked - REQUESTS_BLOCKED message (type 0x1A).
- Server
Setup - SERVER_SETUP message (type 0x21).
- Subscribe
- SUBSCRIBE message (type 0x03).
- Subscribe
Error - SUBSCRIBE_ERROR message (type 0x05).
- Subscribe
Namespace - SUBSCRIBE_NAMESPACE message (type 0x11).
- Subscribe
Namespace Error - SUBSCRIBE_NAMESPACE_ERROR message (type 0x13).
- Subscribe
Namespace Ok - SUBSCRIBE_NAMESPACE_OK message (type 0x12).
- Subscribe
Ok - SUBSCRIBE_OK message (type 0x04).
- Subscribe
Update - SUBSCRIBE_UPDATE message (type 0x02).
- Track
Status - TRACK_STATUS message (type 0x0D) — subscribe-like request.
- Track
Status Error - TRACK_STATUS_ERROR message (type 0x0F).
- Track
Status Ok - TRACK_STATUS_OK message (type 0x0E) — subscribe_ok-like response.
- Unsubscribe
- UNSUBSCRIBE message (type 0x0A).
- Unsubscribe
Namespace - UNSUBSCRIBE_NAMESPACE message (type 0x14).
Enums§
- Control
Message - A parsed MoQT control message (draft-14).
- Fetch
Payload - FETCH payload — either a standalone fetch or a joining fetch.
- Fetch
Type - FETCH type discriminator (standalone vs joining).
- Message
Type - Control message type IDs (draft-14).
Constants§
- KNOWN_
SETUP_ 🔒PARAMETERS - Every setup parameter type draft-14 names, from Section 9.3.2.
- KNOWN_
VERSION_ 🔒SPECIFIC_ PARAMETERS - Every version-specific parameter type draft-14 names, from Section 9.2.1.
- REPEATABLE_
PARAMETER 🔒 - The one parameter type whose own definition lets it repeat.
Functions§
- check_
authorization_ 🔒tokens - Hold every AUTHORIZATION TOKEN parameter to the Token structure it names.
- check_
discriminators 🔒 - Hold a namespace-plus-name pair to the Full Track Name cap.
- check_
full_ 🔒track_ name - check_
group_ 🔒order - Refuse a Group Order of 0x0 on the messages that forbid it.
- check_
no_ 🔒duplicate_ parameters_ received - Refuse a received parameter list that repeats a type this draft names.
- check_
no_ 🔒duplicate_ parameters_ sent - Refuse a parameter list a sender may not put on the wire.
- check_
ranges 🔒 - Refuse a request whose range ends before it starts.
- decode_
parameters 🔒 - Decode a version-specific parameter list, refusing a repeated known type.
- decode_
setup_ 🔒parameters - Decode a SETUP message’s parameter list, refusing a repeated known type.
- encode_
parameters 🔒 - Encode a parameter list, refusing every repeat the sender’s rule forbids and every token that is not one.
- read_
group_ 🔒order_ response - Read a Group Order from a message that must name a real order.
- read_
reason_ 🔒phrase - Read a Reason Phrase, holding it to the cap the draft states for the reader.