Enum serenity_voice_model::Event
source · #[non_exhaustive]pub enum Event {
Identify(Identify),
SelectProtocol(SelectProtocol),
Ready(Ready),
Heartbeat(Heartbeat),
SessionDescription(SessionDescription),
Speaking(Speaking),
HeartbeatAck(HeartbeatAck),
Resume(Resume),
Hello(Hello),
Resumed,
ClientConnect(ClientConnect),
ClientDisconnect(ClientDisconnect),
}
Expand description
A representation of data received for voice gateway events.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Identify(Identify)
Used to begin a voice websocket connection.
SelectProtocol(SelectProtocol)
Used to select the voice protocol and encryption mechanism.
Ready(Ready)
Server’s response to the client’s Identify operation. Contains session-specific information, e.g. SSRC, and supported encryption modes.
Heartbeat(Heartbeat)
Periodic messages used to keep the websocket connection alive.
SessionDescription(SessionDescription)
Server’s confirmation of a negotiated encryption scheme.
Speaking(Speaking)
A voice event denoting that someone is speaking.
HeartbeatAck(HeartbeatAck)
Acknowledgement from the server for a prior voice heartbeat.
Resume(Resume)
Sent by the client after a disconnect to attempt to resume a session.
Hello(Hello)
Used to determine how often the client must send a heartbeat.
Resumed
Message received if a Resume request was successful.
ClientConnect(ClientConnect)
Status update in the current channel, indicating that a user has connected.
ClientDisconnect(ClientDisconnect)
Status update in the current channel, indicating that a user has disconnected.