pub enum RenderError {
Show 13 variants
Play(PlayError),
NoNotes,
State(String),
WrongSynth {
state: Synth,
renderer: Synth,
},
Crashed(String),
TimedOut {
after: Seconds,
output: String,
},
Audio(AudioError),
Preset(FormatError),
Synth(SynthError),
Midi(MidiError),
Host {
cause: String,
fix: String,
},
Engine {
cause: String,
fix: String,
},
Internal(String),
}Expand description
A render that failed.
Variants§
Play(PlayError)
A note or a controller change cannot be played.
NoNotes
The job holds no note.
State(String)
The synth did not take the state.
WrongSynth
The state belongs to another synth than the renderer’s.
Crashed(String)
The process that hosts the plug-in stopped.
TimedOut
The process that hosts the plug-in stopped answering.
Audio(AudioError)
The plug-in gave audio that is not valid.
Preset(FormatError)
The preset file is not a valid preset.
Synth(SynthError)
The synth has no renderer yet.
Midi(MidiError)
The MIDI file cannot be read.
Host
The plug-in host cannot start, cannot load the plug-in or refused a request.
Engine
The open-engine script of tools/vita cannot start, failed or gave
a reply this program cannot read.
Internal(String)
A fault of this program, not of the preset, the synth or the host: a state it built that holds no preset, or a renderer that panicked.
Trait Implementations§
Source§impl Debug for RenderError
impl Debug for RenderError
Source§impl Display for RenderError
impl Display for RenderError
Source§impl Error for RenderError
impl Error for RenderError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<AudioError> for RenderError
impl From<AudioError> for RenderError
Source§fn from(source: AudioError) -> Self
fn from(source: AudioError) -> Self
Source§impl From<PlayError> for RenderError
impl From<PlayError> for RenderError
Source§impl From<RenderError> for LoadFault
impl From<RenderError> for LoadFault
Source§fn from(error: RenderError) -> Self
fn from(error: RenderError) -> Self
Source§impl From<RenderError> for RenderFileError
impl From<RenderError> for RenderFileError
Source§fn from(error: RenderError) -> Self
fn from(error: RenderError) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for RenderError
impl !UnwindSafe for RenderError
impl Freeze for RenderError
impl Send for RenderError
impl Sync for RenderError
impl Unpin for RenderError
impl UnsafeUnpin for RenderError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more