pub enum PublishState {
Idle,
Publishing,
Active,
Done,
}Expand description
Where a subscription a PUBLISH opened has got to, whichever end sent it.
Section 4.1: “A subscription can be initiated by either a publisher or a subscriber. A publisher initiates a subscription to a track by sending the PUBLISH message. The subscriber either accepts or rejects the subscription using PUBLISH_OK or PUBLISH_ERROR.” Both sides of that sentence are here. The transitions are named for who acted rather than for the state they reach, so the two directions have two names for each step and a refused transition names the event the caller actually attempted.
Variants§
Idle
No PUBLISH has been sent or received yet.
Publishing
A PUBLISH is outstanding: sent and not answered, or arrived and not answered.
Active
A PUBLISH_OK has been sent or received: the subscription is live.
Done
The subscription is over, by refusal or by either end ending it.
Trait Implementations§
Source§impl Clone for PublishState
impl Clone for PublishState
Source§fn clone(&self) -> PublishState
fn clone(&self) -> PublishState
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more