pub struct LobbyState {
pub phase: GamePhase,
pub max_users: i64,
pub max_observers: i64,
pub slots: Vec<LobbySlot>,
pub random_seed: u32,
pub host_user_id: Option<i64>,
pub is_single_player: bool,
pub picked_map_tag: u8,
pub game_duration: u32,
pub default_difficulty: i64,
pub default_ai_build: i64,
}
Fields§
§phase: GamePhase
§max_users: i64
§max_observers: i64
§slots: Vec<LobbySlot>
§random_seed: u32
§host_user_id: Option<i64>
§is_single_player: bool
§picked_map_tag: u8
§game_duration: u32
§default_difficulty: i64
§default_ai_build: i64
Implementations§
Source§impl LobbyState
impl LobbyState
pub fn arrow_schema() -> Schema
Trait Implementations§
Source§impl ArrowDeserialize for LobbyState
impl ArrowDeserialize for LobbyState
Source§type ArrayType = LobbyStateArray
type ArrayType = LobbyStateArray
The
arrow::Array
type corresponding to this fieldSource§fn arrow_deserialize<'a>(v: Option<Self>) -> Option<Self>
fn arrow_deserialize<'a>(v: Option<Self>) -> Option<Self>
Deserialize this field from arrow
Source§impl ArrowField for LobbyState
impl ArrowField for LobbyState
Source§impl ArrowSerialize for LobbyState
impl ArrowSerialize for LobbyState
Source§type ArrayBuilderType = MutableLobbyStateArray
type ArrayBuilderType = MutableLobbyStateArray
The
arrow::array::ArrayBuilder
that holds this valueSource§fn new_array() -> Self::ArrayBuilderType
fn new_array() -> Self::ArrayBuilderType
Create a new mutable array
Source§fn arrow_serialize(v: &Self, array: &mut Self::ArrayBuilderType) -> Result<()>
fn arrow_serialize(v: &Self, array: &mut Self::ArrayBuilderType) -> Result<()>
Serialize this field to arrow
Source§impl Clone for LobbyState
impl Clone for LobbyState
Source§fn clone(&self) -> LobbyState
fn clone(&self) -> LobbyState
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 Debug for LobbyState
impl Debug for LobbyState
Source§impl<'de> Deserialize<'de> for LobbyState
impl<'de> Deserialize<'de> for LobbyState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LobbyState
impl PartialEq for LobbyState
Source§impl Serialize for LobbyState
impl Serialize for LobbyState
Source§impl TryFrom<GameSLobbyState> for LobbyState
impl TryFrom<GameSLobbyState> for LobbyState
Source§type Error = S2ProtocolError
type Error = S2ProtocolError
The type returned in the event of a conversion error.
impl StructuralPartialEq for LobbyState
Auto Trait Implementations§
impl Freeze for LobbyState
impl RefUnwindSafe for LobbyState
impl Send for LobbyState
impl Sync for LobbyState
impl Unpin for LobbyState
impl UnwindSafe for LobbyState
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