pub enum SimpleUserMove {
JoinRoom(RoomId),
Play(RpsData),
ConfirmPlay,
BackToRoom,
}Variants§
Trait Implementations§
Source§impl Clone for SimpleUserMove
impl Clone for SimpleUserMove
Source§fn clone(&self) -> SimpleUserMove
fn clone(&self) -> SimpleUserMove
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SimpleUserMove
impl Debug for SimpleUserMove
Source§impl From<&SimpleUserMove> for UserMoveKind
impl From<&SimpleUserMove> for UserMoveKind
Source§fn from(value: &SimpleUserMove) -> Self
fn from(value: &SimpleUserMove) -> Self
Converts to this type from the input type.
Source§impl UserMoveMethods for SimpleUserMove
impl UserMoveMethods for SimpleUserMove
fn allowed_state(&self) -> RpsState
fn resulting_state(&self) -> RpsState
impl Copy for SimpleUserMove
Auto Trait Implementations§
impl Freeze for SimpleUserMove
impl RefUnwindSafe for SimpleUserMove
impl Send for SimpleUserMove
impl Sync for SimpleUserMove
impl Unpin for SimpleUserMove
impl UnwindSafe for SimpleUserMove
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