#[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
Fields
vod: Vod
information about VOD.
VOD Watchparty.
StreamUp
Stream started
StreamDown
Fields
server_time: f64
Epoch Server time
Stream ended
TosStrike
Fields
server_time: f64
Epoch Server time
Channel hit by TOS strike, meaning it will end
Trait Implementations
sourceimpl Clone for VideoPlaybackReply
impl Clone for VideoPlaybackReply
sourcefn clone(&self) -> VideoPlaybackReply
fn clone(&self) -> VideoPlaybackReply
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for VideoPlaybackReply
impl Debug for VideoPlaybackReply
sourceimpl<'de> Deserialize<'de> for VideoPlaybackReply
impl<'de> Deserialize<'de> for VideoPlaybackReply
sourcefn 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
sourceimpl PartialEq<VideoPlaybackReply> for VideoPlaybackReply
impl PartialEq<VideoPlaybackReply> for VideoPlaybackReply
sourcefn eq(&self, other: &VideoPlaybackReply) -> bool
fn eq(&self, other: &VideoPlaybackReply) -> bool
sourceimpl Serialize for VideoPlaybackReply
impl Serialize for VideoPlaybackReply
impl StructuralPartialEq for VideoPlaybackReply
Auto Trait Implementations
impl RefUnwindSafe for VideoPlaybackReply
impl Send for VideoPlaybackReply
impl Sync for VideoPlaybackReply
impl Unpin for VideoPlaybackReply
impl UnwindSafe for VideoPlaybackReply
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more