sheave_core/handlers/
status.rs

1/// The pattern of communication status between servers and publisher clients.
2#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, PartialOrd, Ord)]
3pub enum PublisherStatus {
4    #[default]
5    Connected,
6    Released,
7    FcPublished,
8    Created,
9    Began,
10    Published,
11    Other
12}
13
14/// The pattern of communication status between servers and subscriber clients.
15///
16/// Note there are several subscribing tools which will sent different commands between FCSubscribe and StreamBegin.
17/// For example:
18///
19/// * FFmpeg: getStreamLength
20/// * OBS: set_playlist
21#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, PartialOrd, Ord)]
22pub enum SubscriberStatus {
23    #[default]
24    Connected,
25    WindowAcknowledgementSizeGotSent,
26    Created,
27    FcSubscribed,
28    AdditionalCommandGotSent,
29    Began,
30    Played,
31    BufferLengthGotSent,
32    Other
33}