pub struct PublishStateNotify {
pub parameters: Vec<KeyValuePair>,
}Expand description
PUBLISH_STATE_NOTIFY (0x22), new in draft-20 (Section 10.10, Figure 13).
PUBLISH_STATE_NOTIFY Message {
Type (vi64) = 0x22,
Length (16),
Number of Parameters (vi64),
Parameters (..) ...
}There is no Request ID field. The message is identified by the subscription’s bidirectional request stream it arrives on, the way SUBSCRIBE_OK, PUBLISH_DONE and FETCH_OK are.
The rules a codec cannot check, because they are about the session rather than the frame, and which the caller therefore owns (Section 10.10):
- it is sent by the publisher only, on a subscription’s stream. Receiving one for any other request type, or from the subscriber, MUST close the session with a PROTOCOL_VIOLATION;
- it is unilateral — the receiver does not answer with REQUEST_OK or
REQUEST_ERROR — and it is not counted against the
MAX_REQUEST_UPDATESSetup Option; - it carries only the parameters whose values changed, and an absent parameter is unchanged;
- a publisher MUST NOT use it to change a subscriber-controlled parameter unless the subscriber asked for the change;
- the publisher MUST include
LARGEST_OBJECT(0x09) if known, so the subscriber can locate the point in the track where the change took effect. Nothing here enforces that: a missing required parameter is not something this decoder detects, and a message that omits it is still a well-formed frame.
Fields§
§parameters: Vec<KeyValuePair>Trait Implementations§
Source§impl Clone for PublishStateNotify
impl Clone for PublishStateNotify
Source§fn clone(&self) -> PublishStateNotify
fn clone(&self) -> PublishStateNotify
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PublishStateNotify
impl Debug for PublishStateNotify
impl Eq for PublishStateNotify
Source§impl PartialEq for PublishStateNotify
impl PartialEq for PublishStateNotify
impl StructuralPartialEq for PublishStateNotify
Auto Trait Implementations§
impl Freeze for PublishStateNotify
impl RefUnwindSafe for PublishStateNotify
impl Send for PublishStateNotify
impl Sync for PublishStateNotify
impl Unpin for PublishStateNotify
impl UnsafeUnpin for PublishStateNotify
impl UnwindSafe for PublishStateNotify
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