pub enum CalibrationError {
IoError {
path: PathBuf,
source: Error,
},
InvalidFileSize {
path: PathBuf,
size: u64,
},
NoSamples(PathBuf),
EmptyHistogram,
}Expand description
Errors that can occur during calibration.
Variants§
IoError
Failed to read a calibration data file.
InvalidFileSize
Calibration data file has invalid size (not a multiple of 4 bytes for f32).
NoSamples(PathBuf)
No calibration samples found in the directory.
EmptyHistogram
Empty histogram (no values collected).
Trait Implementations§
Source§impl Debug for CalibrationError
impl Debug for CalibrationError
Source§impl Display for CalibrationError
impl Display for CalibrationError
Source§impl Error for CalibrationError
impl Error for CalibrationError
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 CalibrationError
impl !UnwindSafe for CalibrationError
impl Freeze for CalibrationError
impl Send for CalibrationError
impl Sync for CalibrationError
impl Unpin for CalibrationError
impl UnsafeUnpin for CalibrationError
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