[][src]Enum twitchchat::Message

pub enum Message {
    Irc(Message),
    Join(Join),
    Part(Part),
    PrivMsg(PrivMsg),
    Mode(Mode),
    NamesStart(NamesStart),
    NamesEnd(NamesEnd),
    ClearChat(ClearChat),
    ClearMsg(ClearMsg),
    HostTargetStart(HostTargetStart),
    HostTargetEnd(HostTargetEnd),
    Notice(Notice),
    Reconnect(Reconnect),
    RoomState(RoomState),
    UserNotice(UserNotice),
    UserState(UserState),
    GlobalUserState(GlobalUserState),
    // some variants omitted
}

Messages created by the Client.

Wraps commands

Variants

Irc(Message)

An irc Message

Join(Join)

Join a channel.

Part(Part)

Depart from a channel.

PrivMsg(PrivMsg)

Send a message to a channel.

Mode(Mode)

Gain/lose moderator (operator) status in a channel.

NamesStart(NamesStart)

List current chatters in a channel. (begin)

NamesEnd(NamesEnd)

List current chatters in a channel. (end)

ClearChat(ClearChat)

Purge a user's typically after a user is banned from chat or timed out.

ClearMsg(ClearMsg)

Single message removal on a channel. This is triggered via /delete on IRC.

HostTargetStart(HostTargetStart)

Channel starts host mode.

HostTargetEnd(HostTargetEnd)

Channel stops host mode.

Notice(Notice)

General notices from the server.

Reconnect(Reconnect)

Rejoin channels after a restart.

RoomState(RoomState)

Identifies the channel's chat settings (e.g., slow mode duration).

UserNotice(UserNotice)

Announces Twitch-specific events to the channel (e.g., a user's subscription notification).

UserState(UserState)

Identifies a user's chat settings or properties (e.g., chat color)..

GlobalUserState(GlobalUserState)

On successful login.

Methods

impl Message[src]

pub fn parse(msg: impl ToMessage) -> Self[src]

Converts a message into the internal message type, then into the Twitch 'command'

Trait Implementations

impl PartialEq<Message> for Message[src]

impl Clone for Message[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl From<Message> for Join[src]

impl From<Message> for Part[src]

impl From<Message> for PrivMsg[src]

impl From<Message> for Mode[src]

impl From<Message> for NamesStart[src]

impl From<Message> for NamesEnd[src]

impl From<Message> for ClearChat[src]

impl From<Message> for ClearMsg[src]

impl From<Message> for HostTargetStart[src]

impl From<Message> for HostTargetEnd[src]

impl From<Message> for Notice[src]

impl From<Message> for Reconnect[src]

impl From<Message> for RoomState[src]

impl From<Message> for UserNotice[src]

impl From<Message> for UserState[src]

impl From<Message> for GlobalUserState[src]

impl Debug for Message[src]

impl Serialize for Message[src]

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

Auto Trait Implementations

impl Send for Message

impl Sync for Message

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

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