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
Err(u8)
an error was received. see ERR_* variables.
RateLimited(u64)
you are ratelimited for X seconds
ChannelCreate(ChannelCreate)
create a new channel
ChannelDelete(ChannelDelete)
delete a channel
ChannelUpdate(ChannelUpdate)
edit a channel
Command(Command)
send a bot command
Login(Login)
actually log in. this is required before anything else.
LoginUpdate(LoginUpdate)
update your login credentials. reset_token is ignored and treated as true if password is set.
MessageCreate(MessageCreate)
send a new message
MessageDelete(MessageDelete)
delete a message
MessageDeleteBulk(MessageDeleteBulk)
delete a bunch of messages
MessageList(MessageList)
list limit
most recent messages, optionally before/after a value
MessageUpdate(MessageUpdate)
update a message
Typing(Typing)
send a typing indicator. timeouts after TYPING_TIMEOUT seconds.
UserUpdate(UserUpdate)
update a user (for login info, see LoginUpdate)
ChannelDeleteReceive(ChannelDeleteReceive)
a channel was deleted
ChannelReceive(ChannelReceive)
a channel was created/edited/initially sent
CommandReceive(CommandReceive)
a command was received (bot only)
LoginSuccess(LoginSuccess)
login was successful. save the token and use that next time.
MessageDeleteReceive(MessageDeleteReceive)
a message was deleted
MessageListReceived
a message list operation was finished
MessageReceive(MessageReceive)
a message was created/edited/initially sent
TypingReceive(TypingReceive)
a typing event was received. timeout after TYPING_TIMEOUT seconds.
UserReceive(UserReceive)
a user was created/edited
Trait Implementations
impl Clone for Packet
[src]
fn clone(&self) -> Packet
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more