pub enum BallingError {
ScheduleCheckIntervalZero(String),
SetValueRetrievalError {
location: String,
pump_id: i64,
source: Box<SqlInterfaceError>,
},
DosingIntervalShorterThanCheckInterval(String, u32, u32, u32),
CountdownCalculationInvalidPumpId(String, i64),
InvalidDosingInterval(String, i64),
ReadDurationSinceLastDosingFailure {
location: String,
pump_id: i64,
source: Box<SqlInterfaceError>,
},
}Expand description
Contains error definitions for Balling
Variants§
ScheduleCheckIntervalZero(String)
Balling check interval is zero.
SetValueRetrievalError
Could not get set values for a pump from database.
DosingIntervalShorterThanCheckInterval(String, u32, u32, u32)
Invalid dosing interval in configuration file
CountdownCalculationInvalidPumpId(String, i64)
Countdown calculation encountered invalid pump id.
InvalidDosingInterval(String, i64)
Invalid dosing interval in configuration.
ReadDurationSinceLastDosingFailure
Reading duration since the last dosing event from the database failed.
Trait Implementations§
Source§impl Debug for BallingError
impl Debug for BallingError
Source§impl Display for BallingError
impl Display for BallingError
Source§impl Error for BallingError
impl Error for BallingError
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 Freeze for BallingError
impl !RefUnwindSafe for BallingError
impl Send for BallingError
impl Sync for BallingError
impl Unpin for BallingError
impl !UnwindSafe for BallingError
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