pub enum MusicStackError {
Preflight {
diagnostics: Vec<Diagnostic>,
},
Lower(LowerError),
Pump(PumpError<Infallible, SoundBridgeError>),
Bridge(SoundBridgeError),
Render(SoundRenderError),
}Expand description
Error raised at one of the stages of the music rendering stack.
Variants§
Preflight
The score failed preflight: some notes cannot lower to MIDI.
Fields
§
diagnostics: Vec<Diagnostic>Diagnostics explaining why preflight failed.
Lower(LowerError)
Lowering the score to MIDI failed.
Pump(PumpError<Infallible, SoundBridgeError>)
Pumping MIDI events through the sound bridge failed.
Bridge(SoundBridgeError)
The MIDI-to-sound bridge failed.
Render(SoundRenderError)
Rendering scheduled tones to PCM failed.
Trait Implementations§
Source§impl Debug for MusicStackError
impl Debug for MusicStackError
Source§impl Display for MusicStackError
impl Display for MusicStackError
Source§impl Error for MusicStackError
impl Error for MusicStackError
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 From<LowerError> for MusicStackError
impl From<LowerError> for MusicStackError
Source§fn from(value: LowerError) -> Self
fn from(value: LowerError) -> Self
Converts to this type from the input type.
Source§impl From<PumpError<Infallible, SoundBridgeError>> for MusicStackError
impl From<PumpError<Infallible, SoundBridgeError>> for MusicStackError
Source§fn from(value: PumpError<Infallible, SoundBridgeError>) -> Self
fn from(value: PumpError<Infallible, SoundBridgeError>) -> Self
Converts to this type from the input type.
Source§impl From<SoundBridgeError> for MusicStackError
impl From<SoundBridgeError> for MusicStackError
Source§fn from(value: SoundBridgeError) -> Self
fn from(value: SoundBridgeError) -> Self
Converts to this type from the input type.
Source§impl From<SoundRenderError> for MusicStackError
impl From<SoundRenderError> for MusicStackError
Source§fn from(value: SoundRenderError) -> Self
fn from(value: SoundRenderError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MusicStackError
impl RefUnwindSafe for MusicStackError
impl Send for MusicStackError
impl Sync for MusicStackError
impl Unpin for MusicStackError
impl UnsafeUnpin for MusicStackError
impl UnwindSafe for MusicStackError
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