pub enum PluginError {
InvalidParam {
name: String,
reason: String,
},
UnsupportedFormat,
TooLong {
max_frames: usize,
},
Internal(String),
}Expand description
Why a plugin could not process a waveform.
Variants§
InvalidParam
A parameter is unknown, has the wrong type, or is outside its range.
UnsupportedFormat
The plugin does not work on this waveform’s format, for example pan on a mono waveform.
TooLong
The result would be longer than the limit.
Internal(String)
Anything else.
Trait Implementations§
Source§impl Clone for PluginError
impl Clone for PluginError
Source§impl Debug for PluginError
impl Debug for PluginError
Source§impl Display for PluginError
impl Display for PluginError
Source§impl Error for PluginError
impl Error for PluginError
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<WaveformError> for PluginError
impl From<WaveformError> for PluginError
Source§fn from(e: WaveformError) -> Self
fn from(e: WaveformError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PluginError
impl PartialEq for PluginError
impl StructuralPartialEq for PluginError
Auto Trait Implementations§
impl Forget for PluginError
impl Freeze for PluginError
impl Move for PluginError
impl RefUnwindSafe for PluginError
impl Send for PluginErrorwhere
RawVecInner: Send,
impl Sync for PluginErrorwhere
RawVecInner: Sync,
impl Unpin for PluginError
impl UnsafeUnpin for PluginError
impl UnwindSafe for PluginErrorwhere
RawVecInner: UnwindSafe,
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