#[non_exhaustive]pub enum ReceiveMessageErrorType {
Compression,
Deserializing {
event: String,
},
Reconnect,
}
Expand description
Type of ReceiveMessageError
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.
Compression
Available on crate features
zlib-stock
or zlib-simd
or zstd
only.Binary message could not be decompressed.
The associated error downcasts to CompressionError
.
Deserializing
Gateway event could not be deserialized.
Reconnect
Shard failed to reconnect to the gateway.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReceiveMessageErrorType
impl RefUnwindSafe for ReceiveMessageErrorType
impl Send for ReceiveMessageErrorType
impl Sync for ReceiveMessageErrorType
impl Unpin for ReceiveMessageErrorType
impl UnwindSafe for ReceiveMessageErrorType
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