pub struct DespawnRequest {
pub target: EntityTarget,
}Expand description
Runtime-only event requesting that an authored placement be removed from the
world at runtime. A named target needs no live Entity handle; an
entity-addressed one reaches placements that never had a name. GraphicsSystem
reads these from its Events<DespawnRequest> queue each step, resolves the
target to its entity, hides that entity’s GPU draw slots, and despawns it and
its descendants. World authors never declare this type directly.
Fields§
§target: EntityTargetThe placement to remove, by name or entity.
Trait Implementations§
Source§impl Clone for DespawnRequest
impl Clone for DespawnRequest
Source§fn clone(&self) -> DespawnRequest
fn clone(&self) -> DespawnRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DespawnRequest
Source§impl Debug for DespawnRequest
impl Debug for DespawnRequest
Source§impl Default for DespawnRequest
impl Default for DespawnRequest
Source§fn default() -> DespawnRequest
fn default() -> DespawnRequest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DespawnRequest
impl RefUnwindSafe for DespawnRequest
impl Send for DespawnRequest
impl Sync for DespawnRequest
impl Unpin for DespawnRequest
impl UnsafeUnpin for DespawnRequest
impl UnwindSafe for DespawnRequest
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