pub struct LobbyOptions<'a> {
pub max_players: u8,
pub visibility: Visibility,
pub payload: &'a [u8],
pub metadata: &'a [(&'a str, &'a str)],
}Expand description
What P2p::create opens.
Fields§
§max_players: u8Capacity, host included: 2 to 64.
visibility: VisibilityWho can find and join it.
payload: &'a [u8]The host’s connection blob, at most MAX_LOBBY_PAYLOAD_LEN bytes.
metadata: &'a [(&'a str, &'a str)]At most MAX_LOBBY_METADATA_PAIRS pairs, searchable on a
Visibility::Public lobby.
Trait Implementations§
Source§impl<'a> Clone for LobbyOptions<'a>
impl<'a> Clone for LobbyOptions<'a>
impl<'a> Copy for LobbyOptions<'a>
Auto Trait Implementations§
impl<'a> Freeze for LobbyOptions<'a>
impl<'a> RefUnwindSafe for LobbyOptions<'a>
impl<'a> Send for LobbyOptions<'a>
impl<'a> Sync for LobbyOptions<'a>
impl<'a> Unpin for LobbyOptions<'a>
impl<'a> UnsafeUnpin for LobbyOptions<'a>
impl<'a> UnwindSafe for LobbyOptions<'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