#[non_exhaustive]pub enum AddSoundError {
InManifest(String),
TooLong {
cue: String,
millis: u64,
},
TooMuch {
cue: String,
bytes: u64,
},
}Expand description
Why AudioQueue::add_sound refused a sound. The game’s log says it too.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InManifest(String)
The audio manifest has a sound cue of that name, which an added sound can’t replace.
TooLong
The sound plays longer than ADDED_SECONDS_MAX.
TooMuch
The sounds added would hold more than ADDED_BYTES_MAX bytes.
Trait Implementations§
Source§impl Clone for AddSoundError
impl Clone for AddSoundError
Source§fn clone(&self) -> AddSoundError
fn clone(&self) -> AddSoundError
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 AddSoundError
impl Debug for AddSoundError
Source§impl Display for AddSoundError
impl Display for AddSoundError
impl Eq for AddSoundError
Source§impl Error for AddSoundError
impl Error for AddSoundError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for AddSoundError
impl PartialEq for AddSoundError
impl StructuralPartialEq for AddSoundError
Auto Trait Implementations§
impl Freeze for AddSoundError
impl RefUnwindSafe for AddSoundError
impl Send for AddSoundError
impl Sync for AddSoundError
impl Unpin for AddSoundError
impl UnsafeUnpin for AddSoundError
impl UnwindSafe for AddSoundError
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