diff --git a/Cargo.toml b/Cargo.toml index 2391b7f..539eb74 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ members = [ ] [workspace.package] -version = "0.3.1" +version = "0.3.2" edition = "2021" repository = "https://git.bfpower.io/BFPOWER/physical" readme = "README.md" diff --git a/src/error.rs b/src/error.rs index d371350..7827c42 100644 --- a/src/error.rs +++ b/src/error.rs @@ -1,7 +1,10 @@ -/// Indicates the transducer value is statically known to be impossible. +/// Indicates the transducer value is known to be impossible. #[derive(Copy, Clone, Debug, Eq, PartialEq)] pub struct InvalidValue; +/// Indicates that the encoded data is not valid for the type. +#[derive(Copy, Clone, Debug, Eq, PartialEq)] +pub struct InvalidEncoding; /// An error that it is likely impossible to recover from. 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