pub struct AudioPlaybackUpdate {
pub entity: EntityId,
pub new_state: Option<PlaybackState>,
}Expand description
Update emitted by SpatialMixingLane for a single source — applied
back to its AudioSource component by the
audio_playback_writeback DataSystem.
Fields§
§entity: EntityIdTarget entity.
new_state: Option<PlaybackState>New playback state. None means “stopped” (cursor reset).
Trait Implementations§
Source§impl Clone for AudioPlaybackUpdate
impl Clone for AudioPlaybackUpdate
Source§fn clone(&self) -> AudioPlaybackUpdate
fn clone(&self) -> AudioPlaybackUpdate
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 moreAuto Trait Implementations§
impl Freeze for AudioPlaybackUpdate
impl RefUnwindSafe for AudioPlaybackUpdate
impl Send for AudioPlaybackUpdate
impl Sync for AudioPlaybackUpdate
impl Unpin for AudioPlaybackUpdate
impl UnsafeUnpin for AudioPlaybackUpdate
impl UnwindSafe for AudioPlaybackUpdate
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