pub enum WsOutboundEvent {
Show 24 variants
IdentifyAccepted {
user: User,
},
Ping,
Pong,
MessageCreate {
message: Message,
},
MessageUpdate {
old: Message,
new: Message,
},
MessageDelete {
message: Message,
},
ChannelCreate {
channel: Channel,
},
ChannelUpdate {
old: Channel,
new: Channel,
},
ChannelDelete {
channel: Channel,
},
GuildCreate {
guild: Guild,
},
GuildUpdate {
old: Guild,
new: Guild,
},
GuildDelete {
guild: Guild,
},
MemberCreate {
member: Member,
},
MemberUpdate {
old: Member,
new: Member,
},
MemberDelete {
member: Member,
},
InviteCreate {
invite: Invite,
},
InviteDelete {
invite: Invite,
},
RoleCreate {
role: Role,
},
RoleUpdate {
old: Role,
new: Role,
},
RoleDelete {
role: Role,
},
TypingStart {
channel: Channel,
user: User,
},
TypingEnd {
channel: Channel,
user: User,
},
MemberRoleAdd {
member: Member,
role: Role,
},
MemberRoleDelete {
member: Member,
role: Role,
},
}
Expand description
Server -> client WebSocket events.
Variants§
IdentifyAccepted
Fired when an Identify
is accepted as valid.
user
is the now-authorized user.
Ping
Pong
MessageCreate
Fired when a new message is created.
message
is the message that was created.
MessageUpdate
Fired when a message is updated.
old
is the message before the edit.
new
is the message after the edit.
MessageDelete
Fired when a message is deleted.
message
is the message that was deleted.
ChannelCreate
ChannelUpdate
ChannelDelete
GuildCreate
GuildUpdate
GuildDelete
MemberCreate
MemberUpdate
MemberDelete
InviteCreate
InviteDelete
RoleCreate
RoleUpdate
RoleDelete
TypingStart
TypingEnd
MemberRoleAdd
MemberRoleDelete
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WsOutboundEvent
impl<'de> Deserialize<'de> for WsOutboundEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for WsOutboundEvent
impl RefUnwindSafe for WsOutboundEvent
impl Send for WsOutboundEvent
impl Sync for WsOutboundEvent
impl Unpin for WsOutboundEvent
impl UnwindSafe for WsOutboundEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more