pub enum ModelPresetError {
UnknownPreset {
name: String,
available: Vec<String>,
},
UnknownModelConfig {
name: String,
available: Vec<String>,
},
}Expand description
Preset lookup failure.
Variants§
UnknownPreset
The requested preset name is unknown.
Fields
UnknownModelConfig
The requested model config preset name is unknown.
Trait Implementations§
Source§impl Debug for ModelPresetError
impl Debug for ModelPresetError
Source§impl Display for ModelPresetError
impl Display for ModelPresetError
Source§impl Error for ModelPresetError
impl Error for ModelPresetError
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()
Auto Trait Implementations§
impl Freeze for ModelPresetError
impl RefUnwindSafe for ModelPresetError
impl Send for ModelPresetError
impl Sync for ModelPresetError
impl Unpin for ModelPresetError
impl UnsafeUnpin for ModelPresetError
impl UnwindSafe for ModelPresetError
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