Enum airmash_protocol::ErrorType
source · [−]#[non_exhaustive]
pub enum ErrorType {
Show 18 variants
PacketFloodingDisconnect,
PacketFloodingBan,
Banned,
ForceClientReload,
IdleRequiredBeforeRespawn,
AfkTimeout,
Kicked,
InvalidLogin,
IncorrectProtocol,
AccountBanned,
AccountAlreadyLoggedIn,
NoRespawnInBTR,
IdleRequiredBeforeSpectate,
NotEnoughUpgrades,
ChatThrottled,
FlagChangeThrottled,
UnknownCommand,
Unknown(u8),
}
Expand description
All error codes that can be sent to the client.
These are all server errors that the vanilla AIRMASH client (and the current STARMASH client) understands.
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.
PacketFloodingDisconnect
PacketFloodingBan
Banned
ForceClientReload
This error doesn’t actually show an error on the client side but instead forces the client to reload the page.
IdleRequiredBeforeRespawn
AfkTimeout
Kicked
InvalidLogin
IncorrectProtocol
AccountBanned
AccountAlreadyLoggedIn
NoRespawnInBTR
IdleRequiredBeforeSpectate
NotEnoughUpgrades
ChatThrottled
FlagChangeThrottled
UnknownCommand
Unknown(u8)
Implementations
sourceimpl ErrorType
impl ErrorType
pub const DisconnectedForPacketFlooding: Self = Self::PacketFloodingDisconnect
👎 Deprecated since 0.6.0:
use ErrorType::PacketFloodingDisconnect instead
pub const BannedForPacketFlooding: Self = Self::PacketFloodingBan
👎 Deprecated since 0.6.0:
use ErrorType::PacketFloodingBan instead
pub const IncorrectProtocolLevel: Self = Self::IncorrectProtocol
👎 Deprecated since 0.6.0:
use ErrorType::IncorrectProtocol instead
Trait Implementations
sourceimpl<'de> DeserializeV5<'de> for ErrorType
impl<'de> DeserializeV5<'de> for ErrorType
fn deserialize(de: &mut AirmashDeserializerV5<'de>) -> Result<Self, Error>
sourceimpl SerializeV5 for ErrorType
impl SerializeV5 for ErrorType
impl Copy for ErrorType
impl Eq for ErrorType
impl StructuralEq for ErrorType
impl StructuralPartialEq for ErrorType
Auto Trait Implementations
impl RefUnwindSafe for ErrorType
impl Send for ErrorType
impl Sync for ErrorType
impl Unpin for ErrorType
impl UnwindSafe for ErrorType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more