pub struct OnPrePlayerRemovedEvent {
pub name: &'static str,
pub player_index: u32,
pub tick: u32,
}Expand description
Called before 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 OnPrePlayerRemovedEvent
impl Clone for OnPrePlayerRemovedEvent
Source§fn clone(&self) -> OnPrePlayerRemovedEvent
fn clone(&self) -> OnPrePlayerRemovedEvent
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 OnPrePlayerRemovedEvent
Source§impl Debug for OnPrePlayerRemovedEvent
impl Debug for OnPrePlayerRemovedEvent
Source§impl Default for OnPrePlayerRemovedEvent
impl Default for OnPrePlayerRemovedEvent
Source§fn default() -> OnPrePlayerRemovedEvent
fn default() -> OnPrePlayerRemovedEvent
Returns the “default value” for a type. Read more
Source§impl PartialEq for OnPrePlayerRemovedEvent
impl PartialEq for OnPrePlayerRemovedEvent
impl StructuralPartialEq for OnPrePlayerRemovedEvent
Auto Trait Implementations§
impl Freeze for OnPrePlayerRemovedEvent
impl RefUnwindSafe for OnPrePlayerRemovedEvent
impl Send for OnPrePlayerRemovedEvent
impl Sync for OnPrePlayerRemovedEvent
impl Unpin for OnPrePlayerRemovedEvent
impl UnsafeUnpin for OnPrePlayerRemovedEvent
impl UnwindSafe for OnPrePlayerRemovedEvent
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