pub enum SimpleUserMove {
JoinRoom(RoomId),
Play(RpsData),
ConfirmPlay,
BackToRoom,
}Variants§
Implementations§
Source§impl SimpleUserMove
impl SimpleUserMove
pub fn allowed_state(&self) -> RpsState
Trait Implementations§
Source§impl Clone for SimpleUserMove
impl Clone for SimpleUserMove
Source§fn clone(&self) -> SimpleUserMove
fn clone(&self) -> SimpleUserMove
Returns a copy 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
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