Enum ggrs::SessionState
source · pub enum SessionState {
Synchronizing,
Running,
}
Expand description
A session is always in one of these states. You can query the current state of a session via current_state
.
Variants§
Synchronizing
When synchronizing, the session attempts to establish a connection to the remote clients.
Running
When running, the session has synchronized and is ready to take and transmit player input.
Trait Implementations§
source§impl Clone for SessionState
impl Clone for SessionState
source§fn clone(&self) -> SessionState
fn clone(&self) -> SessionState
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 SessionState
impl Debug for SessionState
source§impl PartialEq<SessionState> for SessionState
impl PartialEq<SessionState> for SessionState
source§fn eq(&self, other: &SessionState) -> bool
fn eq(&self, other: &SessionState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.