pub enum MlError {
Model(ModelError),
Inference(InferenceError),
Preprocessing(PreprocessingError),
Postprocessing(PostprocessingError),
OxiGdal(OxiGdalError),
Ort(String),
Io(Error),
Serialization(Error),
InvalidConfig(String),
FeatureNotAvailable {
feature: String,
flag: String,
},
}Expand description
ML-specific errors
Variants§
Model(ModelError)
Model loading error
Inference(InferenceError)
Inference error
Preprocessing(PreprocessingError)
Preprocessing error
Postprocessing(PostprocessingError)
Postprocessing error
OxiGdal(OxiGdalError)
OxiGDAL core error
Ort(String)
ONNX Runtime error
Io(Error)
I/O error
Serialization(Error)
Serialization error
InvalidConfig(String)
Invalid configuration
FeatureNotAvailable
Feature not available
Trait Implementations§
Source§impl Error for MlError
impl Error for MlError
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<InferenceError> for MlError
impl From<InferenceError> for MlError
Source§fn from(source: InferenceError) -> Self
fn from(source: InferenceError) -> Self
Converts to this type from the input type.
Source§impl From<ModelError> for MlError
impl From<ModelError> for MlError
Source§fn from(source: ModelError) -> Self
fn from(source: ModelError) -> Self
Converts to this type from the input type.
Source§impl From<OxiGdalError> for MlError
impl From<OxiGdalError> for MlError
Source§fn from(source: OxiGdalError) -> Self
fn from(source: OxiGdalError) -> Self
Converts to this type from the input type.
Source§impl From<PostprocessingError> for MlError
impl From<PostprocessingError> for MlError
Source§fn from(source: PostprocessingError) -> Self
fn from(source: PostprocessingError) -> Self
Converts to this type from the input type.
Source§impl From<PreprocessingError> for MlError
impl From<PreprocessingError> for MlError
Source§fn from(source: PreprocessingError) -> Self
fn from(source: PreprocessingError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for MlError
impl !UnwindSafe for MlError
impl Freeze for MlError
impl Send for MlError
impl Sync for MlError
impl Unpin for MlError
impl UnsafeUnpin for MlError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more