pub enum RuvFannError {
Network {
category: NetworkErrorCategory,
message: String,
context: Option<String>,
},
Training {
category: TrainingErrorCategory,
message: String,
context: Option<String>,
},
Cascade {
category: CascadeErrorCategory,
message: String,
context: Option<String>,
},
Validation {
category: ValidationErrorCategory,
message: String,
details: Vec<String>,
},
Io {
category: IoErrorCategory,
message: String,
source: Option<Box<dyn Error + Send + Sync>>,
},
Parallel {
message: String,
thread_count: usize,
context: Option<String>,
},
Memory {
message: String,
requested_bytes: Option<usize>,
available_bytes: Option<usize>,
},
Performance {
message: String,
metric: String,
threshold: f64,
actual: f64,
},
Compatibility {
message: String,
fann_version: Option<String>,
operation: String,
},
}Expand description
Main error type for all ruv-FANN operations
Variants§
Network
Network configuration and topology errors
Training
Training and learning algorithm errors
Cascade
Cascade correlation specific errors
Validation
Data validation and format errors
Io
I/O and serialization errors
Parallel
Parallel processing and concurrency errors
Memory
Memory allocation and management errors
Performance
Performance and optimization errors
Compatibility
FANN compatibility errors
Trait Implementations§
Source§impl Debug for RuvFannError
impl Debug for RuvFannError
Source§impl Display for RuvFannError
impl Display for RuvFannError
Source§impl Error for RuvFannError
impl Error for RuvFannError
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<NetworkError> for RuvFannError
Convert from legacy error types for backward compatibility
impl From<NetworkError> for RuvFannError
Convert from legacy error types for backward compatibility
Source§fn from(error: NetworkError) -> Self
fn from(error: NetworkError) -> Self
Converts to this type from the input type.
Source§impl From<TrainingError> for RuvFannError
impl From<TrainingError> for RuvFannError
Source§fn from(error: TrainingError) -> Self
fn from(error: TrainingError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RuvFannError
impl !RefUnwindSafe for RuvFannError
impl Send for RuvFannError
impl Sync for RuvFannError
impl Unpin for RuvFannError
impl !UnwindSafe for RuvFannError
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