#[repr(u8)]pub enum LoginCode {
Ok = 0,
NoUser = 1,
WrongPassword = 2,
Unauthenticated = 3,
Unverified = 4,
AlreadyIn = 5,
GameBan = 6,
GlobalBan = 7,
Error = 8,
MaxPlayers = 9,
}Expand description
The return success value of a login attempt
Variants§
Ok = 0
NoUser = 1
WrongPassword = 2
Unauthenticated = 3
Unverified = 4
AlreadyIn = 5
GameBan = 6
GlobalBan = 7
Error = 8
MaxPlayers = 9
Trait Implementations§
Source§impl Ord for LoginCode
impl Ord for LoginCode
Source§impl PartialOrd for LoginCode
impl PartialOrd for LoginCode
Source§impl TryFromPrimitive for LoginCode
impl TryFromPrimitive for LoginCode
impl Copy for LoginCode
impl Eq for LoginCode
impl StructuralPartialEq for LoginCode
Auto Trait Implementations§
impl Freeze for LoginCode
impl RefUnwindSafe for LoginCode
impl Send for LoginCode
impl Sync for LoginCode
impl Unpin for LoginCode
impl UnwindSafe for LoginCode
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