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