#[non_exhaustive]pub enum Error {
PluginNotFound(String),
PluginLoadFailed(String),
PluginCrashed,
PluginTimeout,
InvalidParameter(String),
AudioBackendError(String),
MidiError(String),
InterfaceError(String),
ProcessError(String),
IoError(Error),
Other(String),
}Expand description
Main error type for vst3-host operations.
Marked #[non_exhaustive]: match with a wildcard arm, as new variants may be added in
future versions without it being a breaking change.
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.
PluginNotFound(String)
Plugin file not found
PluginLoadFailed(String)
Failed to load plugin
PluginCrashed
Plugin crashed during operation
PluginTimeout
Plugin operation timed out
InvalidParameter(String)
Invalid parameter
AudioBackendError(String)
Audio backend error
MidiError(String)
MIDI error
InterfaceError(String)
COM/VST3 interface error
ProcessError(String)
Process isolation error
IoError(Error)
IO error
Other(String)
Other errors
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
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