[][src]Enum twitch_irc::message::HostTargetAction

pub enum HostTargetAction {
    HostModeOn {
        hosted_channel_login: String,
        viewer_count: Option<u64>,
    },
    HostModeOff {
        viewer_count: Option<u64>,
    },
}

The type of action that a HOSTTARGET signifies, either host mode was enabled (entered) or disabled (exited).

Variants

HostModeOn

Host mode was enabled (entered).

Fields of HostModeOn

hosted_channel_login: String

Login name of the channel that is now being hosted.

viewer_count: Option<u64>

Optional: number of viewers watching the host. If missing this number is unknown at this moment.

HostModeOff

Host mode was disabled (exited).

Fields of HostModeOff

viewer_count: Option<u64>

Optional: number of viewers watching the host. If missing this number is unknown at this moment.

Trait Implementations

impl Clone for HostTargetAction[src]

impl Debug for HostTargetAction[src]

impl PartialEq<HostTargetAction> for HostTargetAction[src]

impl StructuralPartialEq for HostTargetAction[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> 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>,