pub enum ParamError {
Syntax {
at: usize,
message: String,
},
Unknown {
key: String,
known: Vec<String>,
},
Type {
key: String,
wanted: &'static str,
got: &'static str,
},
Range {
key: String,
value: f64,
min: f64,
max: f64,
},
Unsupported {
message: String,
},
}Expand description
What went wrong setting or parsing parameters.
Variants§
Syntax
The text is not a parameter object.
Unknown
The plugin has no parameter by that name.
Type
The parameter exists but does not take a value of that kind.
Range
The value is outside what the parameter accepts.
Unsupported
The plugin has parameters but this build cannot reach them.
Trait Implementations§
Source§impl Clone for ParamError
impl Clone for ParamError
Source§fn clone(&self) -> ParamError
fn clone(&self) -> ParamError
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 ParamError
impl Debug for ParamError
Source§impl Display for ParamError
impl Display for ParamError
Source§impl Error for ParamError
impl Error for ParamError
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 ParamError
impl PartialEq for ParamError
impl StructuralPartialEq for ParamError
Auto Trait Implementations§
impl Freeze for ParamError
impl RefUnwindSafe for ParamError
impl Send for ParamError
impl Sync for ParamError
impl Unpin for ParamError
impl UnsafeUnpin for ParamError
impl UnwindSafe for ParamError
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