pub enum ModelIOError {
IoError(Error),
SerializationError(SerializationError),
ParquetError(ParquetError),
ModelError(String),
InvalidModelFile(String),
VersionMismatch {
expected: String,
actual: String,
},
UnsupportedFormat {
format: String,
},
ModelNotFound(String),
}Expand description
Re-exported model I/O utilities.
Provides model persistence, export/import, and file management capabilities for trained gradient boosting models. Errors that can occur during model I/O operations.
This error type covers all failure modes: file system errors, serialization failures, version mismatches, integrity violations, and missing models.
Variants§
IoError(Error)
File system I/O error.
SerializationError(SerializationError)
Model serialization/deserialization error.
ParquetError(ParquetError)
Parquet file reading error.
ModelError(String)
General model error (e.g., untrained model).
InvalidModelFile(String)
Model file is invalid or corrupted.
VersionMismatch
Version incompatibility between saved model and current library.
UnsupportedFormat
Unsupported file format.
ModelNotFound(String)
Model file not found at specified path.
Trait Implementations§
Source§impl Debug for ModelIOError
impl Debug for ModelIOError
Source§impl Display for ModelIOError
impl Display for ModelIOError
Source§impl Error for ModelIOError
impl Error for ModelIOError
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<Error> for ModelIOError
impl From<Error> for ModelIOError
Source§impl From<ModelIOError> for GBRTError
impl From<ModelIOError> for GBRTError
Source§fn from(source: ModelIOError) -> Self
fn from(source: ModelIOError) -> Self
Converts to this type from the input type.
Source§impl From<ParquetError> for ModelIOError
impl From<ParquetError> for ModelIOError
Source§fn from(source: ParquetError) -> Self
fn from(source: ParquetError) -> Self
Converts to this type from the input type.
Source§impl From<SerializationError> for ModelIOError
impl From<SerializationError> for ModelIOError
Source§fn from(source: SerializationError) -> Self
fn from(source: SerializationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ModelIOError
impl !RefUnwindSafe for ModelIOError
impl Send for ModelIOError
impl Sync for ModelIOError
impl Unpin for ModelIOError
impl !UnwindSafe for ModelIOError
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
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