pub struct Sound(/* private fields */);Expand description
A sound in a slot or on a channel. Its length is known at once; its frames once they’re decoded, which for the slow formats (Opus, Vorbis, FLAC) happens on a thread of its own, so the screen doesn’t wait.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Sound
impl RefUnwindSafe for Sound
impl Send for Sound
impl Sync for Sound
impl Unpin for Sound
impl UnsafeUnpin for Sound
impl UnwindSafe for Sound
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