#[non_exhaustive]pub enum ServerErrorType {
ParserError,
SendError,
PermissionDeniedError,
RateLimitError,
MessageSizeLimitError,
InternalError,
Other(String),
}Expand description
The kind of an error frame that the server sent. The set stays open: a type
that a newer server adds still reaches the caller as
ServerErrorType::Other (ERR-01).
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.
ParserError
The server could not parse a command.
SendError
The server failed to send.
PermissionDeniedError
The token lacks access to what the command tried.
RateLimitError
A message limit was exceeded.
MessageSizeLimitError
An encoded publish command exceeded the plan’s cap, or a message exceeded the 2 MiB transport ceiling.
InternalError
A server-side fault that the client did not cause.
Other(String)
A type that this version does not know, exactly as sent.
Implementations§
Trait Implementations§
Source§impl Clone for ServerErrorType
impl Clone for ServerErrorType
Source§impl Debug for ServerErrorType
impl Debug for ServerErrorType
impl Eq for ServerErrorType
Source§impl Hash for ServerErrorType
impl Hash for ServerErrorType
Source§impl PartialEq for ServerErrorType
impl PartialEq for ServerErrorType
impl StructuralPartialEq for ServerErrorType
Auto Trait Implementations§
impl Freeze for ServerErrorType
impl RefUnwindSafe for ServerErrorType
impl Send for ServerErrorType
impl Sync for ServerErrorType
impl Unpin for ServerErrorType
impl UnsafeUnpin for ServerErrorType
impl UnwindSafe for ServerErrorType
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