pub struct OnPlayerDrivingChangedStateEvent {
pub entity: LuaEntity,
pub name: &'static str,
pub player_index: u32,
pub tick: u32,
}Expand description
Called when the player’s driving state has changed, meaning a player has either entered or left a vehicle.
This event is not raised when the player is ejected from a vehicle due to it being destroyed.
Fields§
§entity: LuaEntity§name: &'static str§player_index: u32§tick: u32Trait Implementations§
Source§impl Clone for OnPlayerDrivingChangedStateEvent
impl Clone for OnPlayerDrivingChangedStateEvent
Source§fn clone(&self) -> OnPlayerDrivingChangedStateEvent
fn clone(&self) -> OnPlayerDrivingChangedStateEvent
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 OnPlayerDrivingChangedStateEvent
Source§impl Default for OnPlayerDrivingChangedStateEvent
impl Default for OnPlayerDrivingChangedStateEvent
Source§fn default() -> OnPlayerDrivingChangedStateEvent
fn default() -> OnPlayerDrivingChangedStateEvent
Returns the “default value” for a type. Read more
impl StructuralPartialEq for OnPlayerDrivingChangedStateEvent
Auto Trait Implementations§
impl Freeze for OnPlayerDrivingChangedStateEvent
impl RefUnwindSafe for OnPlayerDrivingChangedStateEvent
impl Send for OnPlayerDrivingChangedStateEvent
impl Sync for OnPlayerDrivingChangedStateEvent
impl Unpin for OnPlayerDrivingChangedStateEvent
impl UnsafeUnpin for OnPlayerDrivingChangedStateEvent
impl UnwindSafe for OnPlayerDrivingChangedStateEvent
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