[][src]Enum twitchchat::messages::AllCommands

#[non_exhaustive]
pub enum AllCommands<'t> {
    Unknown(Raw<'t>),
    Cap(Cap<'t>),
    ClearChat(ClearChat<'t>),
    ClearMsg(ClearMsg<'t>),
    GlobalUserState(GlobalUserState<'t>),
    HostTarget(HostTarget<'t>),
    IrcReady(IrcReady<'t>),
    Join(Join<'t>),
    Mode(Mode<'t>),
    Names(Names<'t>),
    Notice(Notice<'t>),
    Part(Part<'t>),
    Ping(Ping<'t>),
    Pong(Pong<'t>),
    Privmsg(Privmsg<'t>),
    Ready(Ready<'t>),
    Reconnect(Reconnect),
    RoomState(RoomState<'t>),
    UserNotice(UserNotice<'t>),
    UserState(UserState<'t>),
}

This is a collection of all possible message types

Subscribing to events::All will produce this, so you can have a single stream for multiple messages.

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.
Unknown(Raw<'t>)
Cap(Cap<'t>)
ClearChat(ClearChat<'t>)
ClearMsg(ClearMsg<'t>)
GlobalUserState(GlobalUserState<'t>)
HostTarget(HostTarget<'t>)
IrcReady(IrcReady<'t>)
Join(Join<'t>)
Mode(Mode<'t>)
Names(Names<'t>)
Notice(Notice<'t>)
Part(Part<'t>)
Ping(Ping<'t>)
Pong(Pong<'t>)
Privmsg(Privmsg<'t>)
Ready(Ready<'t>)
Reconnect(Reconnect)
RoomState(RoomState<'t>)
UserNotice(UserNotice<'t>)
UserState(UserState<'t>)

Trait Implementations

impl<'t> AsOwned for AllCommands<'t>[src]

type Owned = AllCommands<'static>

The owned type

impl<'t> Clone for AllCommands<'t>[src]

impl<'t> Debug for AllCommands<'t>[src]

impl<'de, 't> Deserialize<'de> for AllCommands<'t>[src]

impl<'t> From<Cap<'t>> for AllCommands<'t>[src]

impl<'t> From<ClearChat<'t>> for AllCommands<'t>[src]

impl<'t> From<ClearMsg<'t>> for AllCommands<'t>[src]

impl<'t> From<GlobalUserState<'t>> for AllCommands<'t>[src]

impl<'t> From<HostTarget<'t>> for AllCommands<'t>[src]

impl<'t> From<IrcReady<'t>> for AllCommands<'t>[src]

impl<'t> From<Join<'t>> for AllCommands<'t>[src]

impl<'t> From<Message<'t>> for AllCommands<'t>[src]

impl<'t> From<Mode<'t>> for AllCommands<'t>[src]

impl<'t> From<Names<'t>> for AllCommands<'t>[src]

impl<'t> From<Notice<'t>> for AllCommands<'t>[src]

impl<'t> From<Part<'t>> for AllCommands<'t>[src]

impl<'t> From<Ping<'t>> for AllCommands<'t>[src]

impl<'t> From<Pong<'t>> for AllCommands<'t>[src]

impl<'t> From<Privmsg<'t>> for AllCommands<'t>[src]

impl<'t> From<Ready<'t>> for AllCommands<'t>[src]

impl<'t> From<Reconnect> for AllCommands<'t>[src]

impl<'t> From<RoomState<'t>> for AllCommands<'t>[src]

impl<'t> From<UserNotice<'t>> for AllCommands<'t>[src]

impl<'t> From<UserState<'t>> for AllCommands<'t>[src]

impl<'a: 't, 't> Parse<&'a Message<'t>> for AllCommands<'t>[src]

impl<'t> PartialEq<AllCommands<'t>> for AllCommands<'t>[src]

impl<'t> Serialize for AllCommands<'t>[src]

impl<'t> StructuralPartialEq for AllCommands<'t>[src]

Auto Trait Implementations

impl<'t> RefUnwindSafe for AllCommands<'t>

impl<'t> Send for AllCommands<'t>

impl<'t> Sync for AllCommands<'t>

impl<'t> Unpin for AllCommands<'t>

impl<'t> UnwindSafe for AllCommands<'t>

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: Deserialize<'de>, 
[src]

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

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

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.