pub enum ModelRuntimeError {
InvalidArgument(String),
Source(String),
Io(Error),
}Expand description
Error type used by generic model runtime infrastructure.
Variants§
InvalidArgument(String)
The supplied argument or model metadata was invalid.
Source(String)
A filesystem or network source failed.
Io(Error)
A filesystem operation failed.
Trait Implementations§
Source§impl Debug for ModelRuntimeError
impl Debug for ModelRuntimeError
Source§impl Display for ModelRuntimeError
impl Display for ModelRuntimeError
Source§impl Error for ModelRuntimeError
impl Error for ModelRuntimeError
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 !RefUnwindSafe for ModelRuntimeError
impl !UnwindSafe for ModelRuntimeError
impl Freeze for ModelRuntimeError
impl Send for ModelRuntimeError
impl Sync for ModelRuntimeError
impl Unpin for ModelRuntimeError
impl UnsafeUnpin for ModelRuntimeError
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