pub enum TableJoinError {
GameStarted,
TableFull,
AlreadyJoined,
Unknown,
}Expand description
An error from table join operations.
Variants§
GameStarted
The game has already started.
TableFull
The table is full.
AlreadyJoined
The player has already joined the table.
Unknown
An unknown error used by upper layers.
Trait Implementations§
Source§impl Debug for TableJoinError
impl Debug for TableJoinError
Source§impl Display for TableJoinError
impl Display for TableJoinError
Source§impl Error for TableJoinError
impl Error for TableJoinError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for TableJoinError
impl RefUnwindSafe for TableJoinError
impl Send for TableJoinError
impl Sync for TableJoinError
impl Unpin for TableJoinError
impl UnsafeUnpin for TableJoinError
impl UnwindSafe for TableJoinError
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