pub enum CalibrationLoadError {
Read {
path: PathBuf,
source: Error,
},
Parse {
path: PathBuf,
source: Error,
},
SchemaVersion {
path: PathBuf,
found: u32,
expected: u32,
},
InvalidCounters {
path: PathBuf,
detector_id: String,
alpha: u32,
beta: u32,
},
EmptyDetectorId {
path: PathBuf,
},
TooLarge {
path: PathBuf,
cap: u64,
},
}Expand description
Error returned when an existing calibration cache cannot be trusted.
Variants§
Read
The cache file exists but could not be read.
Parse
The cache file exists but is not valid JSON for the calibration schema.
SchemaVersion
The cache JSON has a version this binary does not understand.
InvalidCounters
The cache JSON matches the schema shape but violates semantic invariants.
EmptyDetectorId
Detector identifiers are part of the persisted routing identity.
TooLarge
The cache file exceeds the bounded read cap for calibration artifacts.
Trait Implementations§
Source§impl Debug for CalibrationLoadError
impl Debug for CalibrationLoadError
Source§impl Display for CalibrationLoadError
impl Display for CalibrationLoadError
Source§impl Error for CalibrationLoadError
impl Error for CalibrationLoadError
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 CalibrationLoadError
impl !UnwindSafe for CalibrationLoadError
impl Freeze for CalibrationLoadError
impl Send for CalibrationLoadError
impl Sync for CalibrationLoadError
impl Unpin for CalibrationLoadError
impl UnsafeUnpin for CalibrationLoadError
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