Enum serenity::constants::OpCode [] [src]

pub enum OpCode {
    Event,
    Heartbeat,
    Identify,
    StatusUpdate,
    VoiceStateUpdate,
    VoiceServerPing,
    Resume,
    Reconnect,
    GetGuildMembers,
    InvalidSession,
    Hello,
    HeartbeatAck,
}

Enum to map gateway opcodes.

Variants

Dispatches an event.

Used for ping checking.

Used for client handshake.

Used to update the client status.

Used to join/move/leave voice channels.

Used for voice ping checking.

Used to resume a closed connection.

Used to tell clients to reconnect to the gateway.

Used to request guild members.

Used to notify clients that they have an invalid session Id.

Sent immediately after connection, contains heartbeat + server info.

Sent immediately following a client heartbeat that was received.

Methods

impl OpCode
[src]

[src]

Trait Implementations

impl Clone for OpCode
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for OpCode
[src]

impl Debug for OpCode
[src]

[src]

Formats the value using the given formatter.

impl Eq for OpCode
[src]

impl Hash for OpCode
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialEq for OpCode
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl PartialOrd for OpCode
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

1.0.0
[src]

This method tests less than (for self and other) and is used by the < operator. Read more

1.0.0
[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

1.0.0
[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

1.0.0
[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for OpCode
[src]

[src]

This method returns an Ordering between self and other. Read more

1.21.0
[src]

Compares and returns the maximum of two values. Read more

1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl Serialize for OpCode
[src]

[src]

Serialize this value into the given Serde serializer. Read more

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

[src]

Deserialize this value from the given Serde deserializer. Read more