pub struct OnPlayerLocaleChangedEvent {
pub name: &'static str,
pub old_locale: &'static str,
pub player_index: u32,
pub tick: u32,
}Expand description
Called when a player’s active locale changes. See LuaPlayer::locale.
Fields§
§name: &'static str§old_locale: &'static str§player_index: u32§tick: u32Trait Implementations§
Source§impl Clone for OnPlayerLocaleChangedEvent
impl Clone for OnPlayerLocaleChangedEvent
Source§fn clone(&self) -> OnPlayerLocaleChangedEvent
fn clone(&self) -> OnPlayerLocaleChangedEvent
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 OnPlayerLocaleChangedEvent
Source§impl Debug for OnPlayerLocaleChangedEvent
impl Debug for OnPlayerLocaleChangedEvent
Source§impl Default for OnPlayerLocaleChangedEvent
impl Default for OnPlayerLocaleChangedEvent
Source§fn default() -> OnPlayerLocaleChangedEvent
fn default() -> OnPlayerLocaleChangedEvent
Returns the “default value” for a type. Read more
impl StructuralPartialEq for OnPlayerLocaleChangedEvent
Auto Trait Implementations§
impl Freeze for OnPlayerLocaleChangedEvent
impl RefUnwindSafe for OnPlayerLocaleChangedEvent
impl Send for OnPlayerLocaleChangedEvent
impl Sync for OnPlayerLocaleChangedEvent
impl Unpin for OnPlayerLocaleChangedEvent
impl UnsafeUnpin for OnPlayerLocaleChangedEvent
impl UnwindSafe for OnPlayerLocaleChangedEvent
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