pub struct LobbyData {
pub lobby_id: u64,
pub owner_id: u64,
pub num_members: i32,
pub max_members: i32,
pub lobby_type: i32,
pub lobby_flags: i32,
pub members: Vec<LobbyMember>,
pub metadata: Option<Vec<u8>>,
}Expand description
Data about a lobby.
Fields§
§lobby_id: u64Steam ID of the lobby.
owner_id: u64Steam ID of the lobby owner.
num_members: i32Current number of members.
max_members: i32Maximum number of members.
lobby_type: i32Lobby type.
lobby_flags: i32Lobby flags.
members: Vec<LobbyMember>Current members.
metadata: Option<Vec<u8>>Raw metadata bytes.
Implementations§
Source§impl LobbyData
impl LobbyData
Sourcepub fn parse_metadata(&self) -> Option<LobbyMetadata>
pub fn parse_metadata(&self) -> Option<LobbyMetadata>
Parse the raw metadata bytes into a structured LobbyMetadata.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LobbyData
impl RefUnwindSafe for LobbyData
impl Send for LobbyData
impl Sync for LobbyData
impl Unpin for LobbyData
impl UnsafeUnpin for LobbyData
impl UnwindSafe for LobbyData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more