pub struct DespawnEvent {
pub entity_id: SyncEntityId,
pub reason: DespawnReason,
pub timestamp_ms: u64,
}Expand description
An event representing an entity despawn.
Fields§
§entity_id: SyncEntityId§reason: DespawnReason§timestamp_ms: u64Implementations§
Source§impl DespawnEvent
impl DespawnEvent
pub fn new(entity_id: SyncEntityId, reason: DespawnReason) -> Self
pub fn with_timestamp(self, ts: u64) -> Self
Trait Implementations§
Source§impl Clone for DespawnEvent
impl Clone for DespawnEvent
Source§fn clone(&self) -> DespawnEvent
fn clone(&self) -> DespawnEvent
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 moreAuto Trait Implementations§
impl Freeze for DespawnEvent
impl RefUnwindSafe for DespawnEvent
impl Send for DespawnEvent
impl Sync for DespawnEvent
impl Unpin for DespawnEvent
impl UnsafeUnpin for DespawnEvent
impl UnwindSafe for DespawnEvent
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