pub struct OnPlayerLeftGameEvent {
pub name: &'static str,
pub player_index: u32,
pub reason: &'static str,
pub tick: u32,
}Expand description
Called after a player leaves the game. This is not called when closing a save file in singleplayer, as the player doesn’t actually leave the game, and the save is just on pause until they rejoin.
Fields§
§name: &'static str§player_index: u32§reason: &'static str§tick: u32Trait Implementations§
Source§impl Clone for OnPlayerLeftGameEvent
impl Clone for OnPlayerLeftGameEvent
Source§fn clone(&self) -> OnPlayerLeftGameEvent
fn clone(&self) -> OnPlayerLeftGameEvent
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 OnPlayerLeftGameEvent
Source§impl Debug for OnPlayerLeftGameEvent
impl Debug for OnPlayerLeftGameEvent
Source§impl Default for OnPlayerLeftGameEvent
impl Default for OnPlayerLeftGameEvent
Source§fn default() -> OnPlayerLeftGameEvent
fn default() -> OnPlayerLeftGameEvent
Returns the “default value” for a type. Read more
Source§impl PartialEq for OnPlayerLeftGameEvent
impl PartialEq for OnPlayerLeftGameEvent
impl StructuralPartialEq for OnPlayerLeftGameEvent
Auto Trait Implementations§
impl Freeze for OnPlayerLeftGameEvent
impl RefUnwindSafe for OnPlayerLeftGameEvent
impl Send for OnPlayerLeftGameEvent
impl Sync for OnPlayerLeftGameEvent
impl Unpin for OnPlayerLeftGameEvent
impl UnsafeUnpin for OnPlayerLeftGameEvent
impl UnwindSafe for OnPlayerLeftGameEvent
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