pub struct RequestOk {
pub parameters: Vec<KeyValuePair>,
pub track_properties: Vec<KeyValuePair>,
}Expand description
REQUEST_OK (0x07), the response to PUBLISH, FETCH, REQUEST_UPDATE, TRACK_STATUS, SUBSCRIBE_NAMESPACE, SUBSCRIBE_TRACKS and PUBLISH_NAMESPACE (Section 9.3).
Nothing in the frame says which request it answers, so the decoder holds
its parameters to the union of Section 9.3’s lists and accepts Track
Properties. RequestOk::check_answers applies the rules for one request.
Fields§
§parameters: Vec<KeyValuePair>§track_properties: Vec<KeyValuePair>Implementations§
Source§impl RequestOk
impl RequestOk
Sourcepub fn check_answers(&self, kind: RequestOkKind) -> Result<(), CodecError>
pub fn check_answers(&self, kind: RequestOkKind) -> Result<(), CodecError>
Hold this REQUEST_OK to the rules for the response kind.
A parameter the response’s list does not name is
CodecError::ParameterOutOfScope (Section 9.19.1, INVALID_PARAMETER),
and Track Properties where the response must have none are
CodecError::TrackPropertiesNotPermitted (Section 9.3,
INVALID_FIELD).
Trait Implementations§
impl Eq for RequestOk
impl StructuralPartialEq for RequestOk
Auto Trait Implementations§
impl Freeze for RequestOk
impl RefUnwindSafe for RequestOk
impl Send for RequestOk
impl Sync for RequestOk
impl Unpin for RequestOk
impl UnsafeUnpin for RequestOk
impl UnwindSafe for RequestOk
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more