#[non_exhaustive]pub enum ConfigurationError {
ConfigurationDecode(ConfigDecodeError),
PowerSavingDecode(PowerSavingDecodeError),
ThresholdStatusDecode(ThresholdStatusDecodeError),
ReversedThresholds,
ThresholdMonitorOwnsDomain,
TimingIntegrationMismatch {
measurement: IntegrationTime,
timing: IntegrationTime,
},
}Expand description
Configuration failure independent of the transport.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ConfigurationDecode(ConfigDecodeError)
Configuration register contained an undocumented encoding.
PowerSavingDecode(PowerSavingDecodeError)
Power-saving register contained reserved bits.
ThresholdStatusDecode(ThresholdStatusDecodeError)
Threshold-status register contained reserved bits.
ReversedThresholds
Observed threshold registers were reversed.
ThresholdMonitorOwnsDomain
An enabled threshold monitor would be silently retargeted.
TimingIntegrationMismatch
Explicit timing was derived for a different integration-time setting.
Fields
§
measurement: IntegrationTimeIntegration time requested for the measurement.
§
timing: IntegrationTimeIntegration time used to derive the supplied timing.
Trait Implementations§
Source§impl Clone for ConfigurationError
impl Clone for ConfigurationError
Source§fn clone(&self) -> ConfigurationError
fn clone(&self) -> ConfigurationError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ConfigurationError
Source§impl Debug for ConfigurationError
impl Debug for ConfigurationError
Source§impl Display for ConfigurationError
impl Display for ConfigurationError
impl Eq for ConfigurationError
Source§impl Error for ConfigurationError
impl Error for ConfigurationError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
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
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl Format for ConfigurationError
Available on crate feature defmt only.
impl Format for ConfigurationError
Available on crate feature
defmt only.Source§impl PartialEq for ConfigurationError
impl PartialEq for ConfigurationError
impl StructuralPartialEq for ConfigurationError
Auto Trait Implementations§
impl Freeze for ConfigurationError
impl RefUnwindSafe for ConfigurationError
impl Send for ConfigurationError
impl Sync for ConfigurationError
impl Unpin for ConfigurationError
impl UnsafeUnpin for ConfigurationError
impl UnwindSafe for ConfigurationError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more