pub struct LobbyInfo<'a> {
spectators: Vec<&'a str>,
players: Vec<Player<'a>>,
available_characters: Vec<PlayerCharacter>,
}Fields§
§spectators: Vec<&'a str>§players: Vec<Player<'a>>§available_characters: Vec<PlayerCharacter>Implementations§
Source§impl<'a> LobbyInfo<'a>
impl<'a> LobbyInfo<'a>
pub fn new_from_lobby_state(lobby_state: &'a LobbyState) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for LobbyInfo<'a>
impl<'a> RefUnwindSafe for LobbyInfo<'a>
impl<'a> Send for LobbyInfo<'a>
impl<'a> Sync for LobbyInfo<'a>
impl<'a> Unpin for LobbyInfo<'a>
impl<'a> UnwindSafe for LobbyInfo<'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