[−][src]Enum serenity::model::event::EventType
The type of event dispatch received from the gateway.
This is useful for deciding how to deserialize a received payload.
A Deserialization implementation is provided for deserializing raw event
dispatch type strings to this enum, e.g. deserializing "CHANNEL_CREATE"
to
EventType::ChannelCreate
.
Variants (Non-exhaustive)
Indicator that a channel create payload was received.
This maps to ChannelCreateEvent
.
Indicator that a channel delete payload was received.
This maps to ChannelDeleteEvent
.
Indicator that a channel pins update payload was received.
This maps to ChannelPinsUpdateEvent
.
Indicator that a channel update payload was received.
This maps to ChannelUpdateEvent
.
Indicator that a guild ban addition payload was received.
This maps to GuildBanAddEvent
.
Indicator that a guild ban removal payload was received.
This maps to GuildBanRemoveEvent
.
Indicator that a guild create payload was received.
This maps to GuildCreateEvent
.
Indicator that a guild delete payload was received.
This maps to GuildDeleteEvent
.
Indicator that a guild emojis update payload was received.
This maps to GuildEmojisUpdateEvent
.
Indicator that a guild integrations update payload was received.
This maps to GuildIntegrationsUpdateEvent
.
Indicator that a guild member add payload was received.
This maps to GuildMemberAddEvent
.
Indicator that a guild member remove payload was received.
This maps to GuildMemberRemoveEvent
.
Indicator that a guild member update payload was received.
This maps to GuildMemberUpdateEvent
.
Indicator that a guild members chunk payload was received.
This maps to GuildMembersChunkEvent
.
Indicator that a guild role create payload was received.
This maps to GuildRoleCreateEvent
.
Indicator that a guild role delete payload was received.
This maps to GuildRoleDeleteEvent
.
Indicator that a guild role update payload was received.
This maps to GuildRoleUpdateEvent
.
Indicator that a guild unavailable payload was received.
This maps to GuildUnavailableEvent
.
Indicator that a guild update payload was received.
This maps to GuildUpdateEvent
.
Indicator that an invite was created.
This maps to InviteCreateEvent
.
Indicator that an invite was deleted.
This maps to InviteDeleteEvent
.
Indicator that a message create payload was received.
This maps to MessageCreateEvent
.
Indicator that a message delete payload was received.
This maps to MessageDeleteEvent
.
Indicator that a message delete bulk payload was received.
This maps to MessageDeleteBulkEvent
.
Indicator that a message update payload was received.
This maps to MessageUpdateEvent
.
Indicator that a presence update payload was received.
This maps to PresenceUpdateEvent
.
Indicator that a presences replace payload was received.
This maps to PresencesReplaceEvent
.
Indicator that a reaction add payload was received.
This maps to ReactionAddEvent
.
Indicator that a reaction remove payload was received.
This maps to ReactionRemoveEvent
.
Indicator that a reaction remove all payload was received.
This maps to ReactionRemoveAllEvent
.
Indicator that a ready payload was received.
This maps to ReadyEvent
.
Indicator that a resumed payload was received.
This maps to ResumedEvent
.
Indicator that a typing start payload was received.
This maps to TypingStartEvent
.
Indicator that a user update payload was received.
This maps to UserUpdateEvent
.
Indicator that a voice state payload was received.
This maps to VoiceStateUpdateEvent
.
Indicator that a voice server update payload was received.
This maps to VoiceServerUpdateEvent
.
Indicator that a webhook update payload was received.
This maps to WebhookUpdateEvent
.
Other(String)
An unknown event was received over the gateway.
This should be logged so that support for it can be added in the library.
Trait Implementations
impl Clone for EventType
[src]
impl Debug for EventType
[src]
impl<'de> Deserialize<'de> for EventType
[src]
fn deserialize<D>(deserializer: D) -> StdResult<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl Eq for EventType
[src]
impl Ord for EventType
[src]
fn cmp(&self, other: &EventType) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<EventType> for EventType
[src]
impl PartialOrd<EventType> for EventType
[src]
fn partial_cmp(&self, other: &EventType) -> Option<Ordering>
[src]
fn lt(&self, other: &EventType) -> bool
[src]
fn le(&self, other: &EventType) -> bool
[src]
fn gt(&self, other: &EventType) -> bool
[src]
fn ge(&self, other: &EventType) -> bool
[src]
impl StructuralEq for EventType
[src]
impl StructuralPartialEq for EventType
[src]
Auto Trait Implementations
impl RefUnwindSafe for EventType
impl Send for EventType
impl Sync for EventType
impl Unpin for EventType
impl UnwindSafe for EventType
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,