Enum StartupError

Source
pub enum StartupError {
Show 19 variants Config(ConfigFileDefinitionError), LoadConfig(ConfigError), NotRoot, InvalidThermalConfig, Database { source: Box<SqlInterfaceError>, }, InvalidBallingConfiguration { source: BallingError, }, TcpConnection { source: TcpCommunicationError, }, Messaging { source: MessagingError, }, GpioHandlerMissing, InvalidMemoryConfig { source: MemoryConfigError, }, VersionInformationRetrievalFailure { source: VersionInformationError, }, LoggingSetupFailure { source: LoggerSetupError, }, DataLoggerSetupFailure { source: DataLoggerError, }, ControllinoSetupFailure { source: ActuateControllinoError, }, TankLevelSwitchSetupFailure { source: TankLevelSwitchError, }, SensorManagerSetupFailure { source: SensorManagerError, }, Ds18b20SetupFailure { source: Ds18b20Error, }, PidCheckError { source: PublishPidError, }, WatchdogSetupFailure { source: WatchdogError, },
}
Expand description

Contains top-level error definitions for errors which may happen at startup. No additional parameter to identify the module is required here.

Variants§

§

Config(ConfigFileDefinitionError)

Invalid command-line arguments

§

LoadConfig(ConfigError)

The error message will come directly from ConfigError.

§

NotRoot

This application must be run as root.

§

InvalidThermalConfig

Configuration of temperature ranges for heating and ventilation control is not valid.

§

Database

A database error occurred.

Fields

§

InvalidBallingConfiguration

The Balling dosing configuration is invalid.

Fields

§

TcpConnection

Could not open TCP connection to test server.

§

Messaging

Could not open POSIX message queue.

Fields

§

GpioHandlerMissing

Configuration error: GPIO handler not initialized.

§

InvalidMemoryConfig

Configuration error: Memory configuration of the operating system is invalid.

Fields

§

VersionInformationRetrievalFailure

Could not retrieve version information.

§

LoggingSetupFailure

Could not initialize the logging system.

Fields

§

DataLoggerSetupFailure

Could not initialize the data recording system.

Fields

§

ControllinoSetupFailure

Could not initialize communication with Controllino.

§

TankLevelSwitchSetupFailure

Could not initialize the tank level switch measurement and calculation.

§

SensorManagerSetupFailure

Could not initialize the sensor manager.

Fields

§

Ds18b20SetupFailure

Could not initialize the Ds18b20 sensor communication.

Fields

§

PidCheckError

Could not check for an already running version of the application.

Fields

§

WatchdogSetupFailure

Could not set up watchdog.

Fields

Trait Implementations§

Source§

impl Debug for StartupError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for StartupError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for StartupError

Source§

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

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<ConfigError> for StartupError

Source§

fn from(source: ConfigError) -> Self

Converts to this type from the input type.
Source§

impl From<ConfigFileDefinitionError> for StartupError

Source§

fn from(source: ConfigFileDefinitionError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T