#[non_exhaustive]pub struct GameAudio {
pub manifest: AudioManifest,
pub files: Files<'static>,
}Expand description
The audio a game ships on a target whose export bakes it
(GameTools::audio). Build it with GameAudio::new (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.manifest: AudioManifestThe cues it ships there. A music cue left out isn’t baked, and plays as silence there, with a warning.
files: Files<'static>How to read their files. Where the game can’t read its music folder
(music is None), it is read from the project’s root.
Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for GameAudio
impl !Send for GameAudio
impl !Sync for GameAudio
impl !UnwindSafe for GameAudio
impl Freeze for GameAudio
impl Unpin for GameAudio
impl UnsafeUnpin for GameAudio
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