#[non_exhaustive]pub enum VideoPlaybackReply {
Commercial {
length: i64,
server_time: f64,
/* private fields */
},
ViewCount {
server_time: f64,
viewers: i64,
},
WatchPartyVod {
vod: Vod,
},
StreamUp {
server_time: f64,
play_delay: i64,
},
StreamDown {
server_time: f64,
},
TosStrike {
server_time: f64,
},
}Available on crate features
pubsub and unsupported only.Expand description
Reply from VideoPlayback and VideoPlaybackById
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Commercial
Commercial started
Commercial started in full-screen or PiP
ViewCount
Current viewcount on playback
WatchPartyVod
VOD Watchparty.
StreamUp
Stream started
StreamDown
Stream ended
TosStrike
Channel hit by TOS strike, meaning it will end
Trait Implementations§
Source§impl Clone for VideoPlaybackReply
impl Clone for VideoPlaybackReply
Source§fn clone(&self) -> VideoPlaybackReply
fn clone(&self) -> VideoPlaybackReply
Returns a duplicate of the value. Read more
1.0.0 · 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 VideoPlaybackReply
impl Debug for VideoPlaybackReply
Source§impl<'de> Deserialize<'de> for VideoPlaybackReply
impl<'de> Deserialize<'de> for VideoPlaybackReply
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for VideoPlaybackReply
impl PartialEq for VideoPlaybackReply
Source§impl Serialize for VideoPlaybackReply
impl Serialize for VideoPlaybackReply
impl StructuralPartialEq for VideoPlaybackReply
Auto Trait Implementations§
impl Freeze for VideoPlaybackReply
impl RefUnwindSafe for VideoPlaybackReply
impl Send for VideoPlaybackReply
impl Sync for VideoPlaybackReply
impl Unpin for VideoPlaybackReply
impl UnwindSafe for VideoPlaybackReply
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