Struct valence_server::spawn::ClientSpawnQueryItem
source · pub struct ClientSpawnQueryItem<'__w> {
pub is_hardcore: <&'static mut IsHardcore as WorldQuery>::Item<'__w>,
pub game_mode: <&'static mut GameMode as WorldQuery>::Item<'__w>,
pub prev_game_mode: <&'static mut PrevGameMode as WorldQuery>::Item<'__w>,
pub hashed_seed: <&'static mut HashedSeed as WorldQuery>::Item<'__w>,
pub view_distance: <&'static mut ViewDistance as WorldQuery>::Item<'__w>,
pub reduced_debug_info: <&'static mut ReducedDebugInfo as WorldQuery>::Item<'__w>,
pub has_respawn_screen: <&'static mut HasRespawnScreen as WorldQuery>::Item<'__w>,
pub is_debug: <&'static mut IsDebug as WorldQuery>::Item<'__w>,
pub is_flat: <&'static mut IsFlat as WorldQuery>::Item<'__w>,
pub death_loc: <&'static mut DeathLocation as WorldQuery>::Item<'__w>,
pub portal_cooldown: <&'static mut PortalCooldown as WorldQuery>::Item<'__w>,
}
Expand description
Automatically generated [WorldQuery
] item type for ClientSpawnQuery
, returned when iterating over query results.
Fields§
§is_hardcore: <&'static mut IsHardcore as WorldQuery>::Item<'__w>
§game_mode: <&'static mut GameMode as WorldQuery>::Item<'__w>
§prev_game_mode: <&'static mut PrevGameMode as WorldQuery>::Item<'__w>
§hashed_seed: <&'static mut HashedSeed as WorldQuery>::Item<'__w>
§view_distance: <&'static mut ViewDistance as WorldQuery>::Item<'__w>
§reduced_debug_info: <&'static mut ReducedDebugInfo as WorldQuery>::Item<'__w>
§has_respawn_screen: <&'static mut HasRespawnScreen as WorldQuery>::Item<'__w>
§is_debug: <&'static mut IsDebug as WorldQuery>::Item<'__w>
§is_flat: <&'static mut IsFlat as WorldQuery>::Item<'__w>
§death_loc: <&'static mut DeathLocation as WorldQuery>::Item<'__w>
§portal_cooldown: <&'static mut PortalCooldown as WorldQuery>::Item<'__w>
Auto Trait Implementations§
impl<'__w> Freeze for ClientSpawnQueryItem<'__w>
impl<'__w> RefUnwindSafe for ClientSpawnQueryItem<'__w>
impl<'__w> Send for ClientSpawnQueryItem<'__w>
impl<'__w> Sync for ClientSpawnQueryItem<'__w>
impl<'__w> Unpin for ClientSpawnQueryItem<'__w>
impl<'__w> !UnwindSafe for ClientSpawnQueryItem<'__w>
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.