Enum synac::common::Packet [] [src]

pub enum Packet {
    Err(u8),
    RateLimited(u64),
    ChannelCreate(ChannelCreate),
    ChannelDelete(ChannelDelete),
    ChannelUpdate(ChannelUpdate),
    Command(Command),
    Login(Login),
    LoginUpdate(LoginUpdate),
    MessageCreate(MessageCreate),
    MessageDelete(MessageDelete),
    MessageDeleteBulk(MessageDeleteBulk),
    MessageList(MessageList),
    MessageUpdate(MessageUpdate),
    Typing(Typing),
    UserUpdate(UserUpdate),
    ChannelDeleteReceive(ChannelDeleteReceive),
    ChannelReceive(ChannelReceive),
    CommandReceive(CommandReceive),
    LoginSuccess(LoginSuccess),
    MessageDeleteReceive(MessageDeleteReceive),
    MessageListReceived,
    MessageReceive(MessageReceive),
    TypingReceive(TypingReceive),
    UserReceive(UserReceive),
}

Variants

an error was received. see ERR_* variables.

you are ratelimited for X seconds

create a new channel

delete a channel

edit a channel

send a bot command

actually log in. this is required before anything else.

update your login credentials. reset_token is ignored and treated as true if password is set.

send a new message

delete a message

delete a bunch of messages

list limit most recent messages, optionally before/after a value

update a message

send a typing indicator. timeouts after TYPING_TIMEOUT seconds.

update a user (for login info, see LoginUpdate)

a channel was deleted

a channel was created/edited/initially sent

a command was received (bot only)

login was successful. save the token and use that next time.

a message was deleted

a message list operation was finished

a message was created/edited/initially sent

a typing event was received. timeout after TYPING_TIMEOUT seconds.

a user was created/edited

Trait Implementations

impl Clone for Packet
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Packet
[src]

[src]

Formats the value using the given formatter.