Changes to Derive(PollVariants) to accept any path for the value type.

This commit is contained in:
Zachary Sunforge
2023-06-23 14:15:43 -07:00
parent 8f2d2b6679
commit 07cb49bee5
5 changed files with 63 additions and 30 deletions

12
src/error.rs Normal file
View 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,
}

View File

@ -3,3 +3,6 @@
pub mod transducer;
pub mod cell;
mod error;
pub use error::*;