Added InvalidMessage error type
This commit is contained in:
@ -9,7 +9,7 @@ members = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
[workspace.package]
|
[workspace.package]
|
||||||
version = "0.3.1"
|
version = "0.3.2"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
repository = "https://git.bfpower.io/BFPOWER/physical"
|
repository = "https://git.bfpower.io/BFPOWER/physical"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
@ -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)]
|
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
|
||||||
pub struct InvalidValue;
|
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
|
/// 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
|
/// 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
|
/// should consist of attempting to alert another system for maintenance and attempting to shut down
|
||||||
|
Reference in New Issue
Block a user