Enum twitch_api2::pubsub::video_playback::VideoPlaybackReply[][src]

#[non_exhaustive]pub enum VideoPlaybackReply {
    Commercial {
        length: i64,
        server_time: f64,
        // some fields omitted
    },
    ViewCount {
        server_time: f64,
        viewers: i64,
    },
    WatchPartyVod {
        vod: Vod,
    },
    StreamUp {
        server_time: f64,
        play_delay: i64,
    },
    StreamDown {
        server_time: f64,
    },
    TosStrike {
        server_time: f64,
    },
}
This is supported on crate features pubsub and unsupported only.

Variants (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

Fields of Commercial

length: i64

Length of commercial

server_time: f64

Epoch Server time when commercial started

ViewCount

Current viewcount on playback

Fields of ViewCount

server_time: f64

Epoch Server time

viewers: i64

Current viewers

WatchPartyVod

VOD Watchparty.

Fields of WatchPartyVod

vod: Vod

information about VOD.

StreamUp

Stream started

Fields of StreamUp

server_time: f64

Epoch Server time

play_delay: i64

Delay as set in broadcaster settings.

StreamDown

Stream ended

Fields of StreamDown

server_time: f64

Epoch Server time

TosStrike

Channel hit by TOS strike, meaning it will end

Fields of TosStrike

server_time: f64

Epoch Server time

Trait Implementations

impl Clone for VideoPlaybackReply[src]

impl Debug for VideoPlaybackReply[src]

impl<'de> Deserialize<'de> for VideoPlaybackReply[src]

impl PartialEq<VideoPlaybackReply> for VideoPlaybackReply[src]

impl Serialize for VideoPlaybackReply[src]

impl StructuralPartialEq for VideoPlaybackReply[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]