pub enum DeviceProfileError {
NotProfile,
MissingField(&'static str),
BadField(&'static str),
Rate(RateError),
TierMismatch {
declared: DeviceTier,
derived: DeviceTier,
},
}Expand description
A reason a device profile could not be parsed.
Variants§
NotProfile
The value was not a device/profile tagged map.
MissingField(&'static str)
A required field was missing.
BadField(&'static str)
A field carried the wrong value shape.
Rate(RateError)
The rate map was malformed.
TierMismatch
The declared tier disagreed with derive_tier.
Fields
§
declared: DeviceTierThe tier declared in the profile map.
§
derived: DeviceTierThe tier derived from the capability fields.
Trait Implementations§
Source§impl Clone for DeviceProfileError
impl Clone for DeviceProfileError
Source§fn clone(&self) -> DeviceProfileError
fn clone(&self) -> DeviceProfileError
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 moreSource§impl Debug for DeviceProfileError
impl Debug for DeviceProfileError
Source§impl Display for DeviceProfileError
impl Display for DeviceProfileError
impl Eq for DeviceProfileError
Source§impl Error for DeviceProfileError
impl Error for DeviceProfileError
1.30.0 · 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 PartialEq for DeviceProfileError
impl PartialEq for DeviceProfileError
impl StructuralPartialEq for DeviceProfileError
Auto Trait Implementations§
impl Freeze for DeviceProfileError
impl RefUnwindSafe for DeviceProfileError
impl Send for DeviceProfileError
impl Sync for DeviceProfileError
impl Unpin for DeviceProfileError
impl UnsafeUnpin for DeviceProfileError
impl UnwindSafe for DeviceProfileError
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