pub struct Player<'a> {
pub index: u8,
pub name: &'a str,
pub score: i32,
pub duration: f32,
}Expand description
One player record from an A2S_PLAYER response.
The player name borrows from the response packet. Use Player::to_owned
to keep an owned copy after the packet is released.
Fields§
§index: u8Player index reported by the server.
name: &'a strPlayer name.
score: i32Player score.
duration: f32Connection duration in seconds.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for Player<'a>
impl<'a> Freeze for Player<'a>
impl<'a> Move for Player<'a>
impl<'a> RefUnwindSafe for Player<'a>
impl<'a> Send for Player<'a>
impl<'a> Sync for Player<'a>
impl<'a> Unpin for Player<'a>
impl<'a> UnsafeUnpin for Player<'a>
impl<'a> UnwindSafe for Player<'a>
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