Enum twilight_gateway::shard::SendErrorType
source · #[non_exhaustive]
pub enum SendErrorType {
HeartbeaterNotStarted,
Sending,
SessionInactive,
}
Expand description
Type of SendError
that occurred.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
HeartbeaterNotStarted
Heartbeater task has not been started yet.
Sending
Sending the payload over the WebSocket failed. This is indicative of a shard that isn’t properly running.
SessionInactive
Shard’s session is inactive because the shard hasn’t been started.