pub struct PlayersCount { /* private fields */ }
Expand description
A struct representing the server’s players count.
Implementations§
Source§impl PlayersCount
impl PlayersCount
Sourcepub fn max_players(&self) -> u32
pub fn max_players(&self) -> u32
Get a reference to the players count’s max players.
Sourcepub fn current_players(&self) -> u32
pub fn current_players(&self) -> u32
Get a reference to the players count’s current players.
Sourcepub fn max_players_mut(&mut self) -> &mut u32
pub fn max_players_mut(&mut self) -> &mut u32
Get a mutable reference to the players count’s max players.
Sourcepub fn current_players_mut(&mut self) -> &mut u32
pub fn current_players_mut(&mut self) -> &mut u32
Get a mutable reference to the players count’s current players.
Trait Implementations§
Source§impl Clone for PlayersCount
impl Clone for PlayersCount
Source§fn clone(&self) -> PlayersCount
fn clone(&self) -> PlayersCount
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 Default for PlayersCount
impl Default for PlayersCount
Source§fn default() -> PlayersCount
fn default() -> PlayersCount
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PlayersCount
impl RefUnwindSafe for PlayersCount
impl Send for PlayersCount
impl Sync for PlayersCount
impl Unpin for PlayersCount
impl UnwindSafe for PlayersCount
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