#[non_exhaustive]pub struct PlayingSound {
pub id: SoundId,
pub cue: String,
pub paused: bool,
}Expand description
A sound started with a handle that the Speaker holds as playing.
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.id: SoundIdIts handle.
cue: StringIts sound cue.
paused: boolWhether SoundRequest::PauseSounds paused it.
Trait Implementations§
Source§impl Clone for PlayingSound
impl Clone for PlayingSound
Source§fn clone(&self) -> PlayingSound
fn clone(&self) -> PlayingSound
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 moreSource§impl Debug for PlayingSound
impl Debug for PlayingSound
Source§impl PartialEq for PlayingSound
impl PartialEq for PlayingSound
impl StructuralPartialEq for PlayingSound
Auto Trait Implementations§
impl Freeze for PlayingSound
impl RefUnwindSafe for PlayingSound
impl Send for PlayingSound
impl Sync for PlayingSound
impl Unpin for PlayingSound
impl UnsafeUnpin for PlayingSound
impl UnwindSafe for PlayingSound
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