pub struct OnPlayerRemovedEvent {
pub name: &'static str,
pub player_index: u32,
pub tick: u32,
}Expand description
Called when a player is removed (deleted) from the game. This is markedly different from a player temporarily leaving the game, and instead behaves like the player never existed in the save file.
Fields§
§name: &'static str§player_index: u32§tick: u32Trait Implementations§
Source§impl Clone for OnPlayerRemovedEvent
impl Clone for OnPlayerRemovedEvent
Source§fn clone(&self) -> OnPlayerRemovedEvent
fn clone(&self) -> OnPlayerRemovedEvent
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 OnPlayerRemovedEvent
Source§impl Debug for OnPlayerRemovedEvent
impl Debug for OnPlayerRemovedEvent
Source§impl Default for OnPlayerRemovedEvent
impl Default for OnPlayerRemovedEvent
Source§fn default() -> OnPlayerRemovedEvent
fn default() -> OnPlayerRemovedEvent
Returns the “default value” for a type. Read more
Source§impl PartialEq for OnPlayerRemovedEvent
impl PartialEq for OnPlayerRemovedEvent
impl StructuralPartialEq for OnPlayerRemovedEvent
Auto Trait Implementations§
impl Freeze for OnPlayerRemovedEvent
impl RefUnwindSafe for OnPlayerRemovedEvent
impl Send for OnPlayerRemovedEvent
impl Sync for OnPlayerRemovedEvent
impl Unpin for OnPlayerRemovedEvent
impl UnsafeUnpin for OnPlayerRemovedEvent
impl UnwindSafe for OnPlayerRemovedEvent
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