pub struct Session {
pub change: SessionChange,
pub ironman: bool,
pub multiplayer: bool,
pub number: u64,
}Expand description
A game session: anvil-game.session’s payload and Game::session.
Fields§
§change: SessionChangeStarted or ended; an end carries the flags the session had.
ironman: boolAn ironman game.
multiplayer: boolA multiplayer game.
number: u641 for the first session since the game started, then 2, …
Trait Implementations§
impl Copy for Session
impl Eq for Session
impl StructuralPartialEq for Session
Auto Trait Implementations§
impl Forget for Session
impl Freeze for Session
impl Move for Session
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnsafeUnpin for Session
impl UnwindSafe for Session
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