Enum ggrs::PlayerType [−][src]
pub enum PlayerType { Local, Remote(SocketAddr), Spectator(SocketAddr), }
Expand description
Defines the three types of players that GGRS considers:
- local players, who play on the local device,
- remote players, who play on other devices and
- spectators, who are remote players that do not contribute to the game input.
Both
Remote
andSpectator
have a socket address associated with them.
Variants
This player plays on the local device.
Remote(SocketAddr)
This player plays on a remote device identified by the socket address.
Spectator(SocketAddr)
This player spectates on a remote device identified by the socket address. They do not contribute to the game input.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for PlayerType
impl Send for PlayerType
impl Sync for PlayerType
impl Unpin for PlayerType
impl UnwindSafe for PlayerType
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V