pub enum RequestOkKind {
Publish,
Fetch,
RequestUpdate,
TrackStatus,
SubscribeNamespace,
SubscribeTracks,
PublishNamespace,
}Expand description
The request a RequestOk answers, named by Section 1.5’s shorthand.
Variants§
Publish
PUBLISH_OK.
Fetch
FETCH_OK.
RequestUpdate
REQUEST_UPDATE_OK.
TrackStatus
TRACK_STATUS_OK.
SubscribeNamespace
SUBSCRIBE_NAMESPACE_OK.
SubscribeTracks
SUBSCRIBE_TRACKS_OK.
PublishNamespace
PUBLISH_NAMESPACE_OK.
Implementations§
Source§impl RequestOkKind
impl RequestOkKind
Sourcepub fn allows_parameter(self, key: u64) -> bool
pub fn allows_parameter(self, key: u64) -> bool
Whether Section 9.3 lists Message Parameter key for this response.
Section 9.3: “The parameters that can appear depend on the request being answered”, then one list per response: EXPIRES and LARGEST_OBJECT for FETCH_OK, REQUEST_UPDATE_OK and TRACK_STATUS_OK, and EXPIRES alone for PUBLISH_OK, SUBSCRIBE_NAMESPACE_OK, SUBSCRIBE_TRACKS_OK and PUBLISH_NAMESPACE_OK.
Sourcepub fn allows_track_properties(self) -> bool
pub fn allows_track_properties(self) -> bool
Whether this response may carry Track Properties.
Section 9.3: “Track Properties are populated in TRACK_STATUS_OK and FETCH_OK; they are empty in PUBLISH_OK, REQUEST_UPDATE_OK, SUBSCRIBE_NAMESPACE_OK and PUBLISH_NAMESPACE_OK.” SUBSCRIBE_TRACKS_OK is in neither list, so this does not refuse them there.