#[non_exhaustive]pub struct AddedPlay {
pub cue: String,
pub samples: SharedSamples,
pub volume: f32,
pub id: Option<SoundId>,
}Expand description
A play of a sound the game added at run time, as the Speaker heard
it: the samples it played. Only the Speaker builds one (ADR-0039).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.cue: StringThe sound cue.
samples: SharedSamplesThe samples it played.
volume: f32The volume asked for, 0–1: a multiplier on the sound’s own, full.
id: Option<SoundId>The handle it was started with, if it was.
Trait Implementations§
impl StructuralPartialEq for AddedPlay
Auto Trait Implementations§
impl Freeze for AddedPlay
impl RefUnwindSafe for AddedPlay
impl Send for AddedPlay
impl Sync for AddedPlay
impl Unpin for AddedPlay
impl UnsafeUnpin for AddedPlay
impl UnwindSafe for AddedPlay
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