Changes to Derive(PollVariants) to accept any path for the value type.
This commit is contained in:
12
src/error.rs
Normal file
12
src/error.rs
Normal file
@ -0,0 +1,12 @@
|
||||
/// An error that it is likely impossible to recover. This error should only be created in
|
||||
/// situations where attempts to recover have already been attempted and have failed. Error handling
|
||||
/// should consist of attempting to alert another system for maintenance and attempting to shut down
|
||||
/// any systems that depend on the correct functionality of the component having errors.
|
||||
///
|
||||
/// In many systems there can be a single function for handling any critical error as a critical
|
||||
/// error always means everything needs to be stopped.
|
||||
#[derive(Copy, Clone, Eq, PartialEq)]
|
||||
pub enum CriticalError {
|
||||
/// Critical communication failed and retries are either impossible or also failed.
|
||||
Communication,
|
||||
}
|
@ -3,3 +3,6 @@
|
||||
|
||||
pub mod transducer;
|
||||
pub mod cell;
|
||||
mod error;
|
||||
|
||||
pub use error::*;
|
||||
|
Reference in New Issue
Block a user