pub enum Defect {
MissingCluster(ClusterId),
DisallowedCluster(ClusterId),
MissingFeature {
cluster: ClusterId,
code: &'static str,
},
MissingClient(ClusterId),
MissingElement {
cluster: ClusterId,
name: &'static str,
},
}Expand description
What an endpoint’s furnishing got wrong.
Variants§
MissingCluster(ClusterId)
A cluster the device type requires and the endpoint does not serve.
DisallowedCluster(ClusterId)
A cluster the device type explicitly disallows.
MissingFeature
A cluster is present but without a feature the device type demands of it.
Fields
MissingClient(ClusterId)
A cluster the device type requires the endpoint to speak as a client, and the
endpoint’s ClientList does not name (§9.5.6.3).
MissingElement
A cluster is present but without an element the device type demands of it.
A device type may tighten its clusters’ own conformance: §1.2.6 calls Identify’s
TriggerEffect optional, and §4.1’s On/Off Light makes it mandatory. A check that
only compared cluster ids would pass an endpoint whose app screen has a dead button.
Trait Implementations§
impl Copy for Defect
impl Eq for Defect
impl StructuralPartialEq for Defect
Auto Trait Implementations§
impl Forget for Defect
impl Freeze for Defect
impl Move for Defect
impl RefUnwindSafe for Defect
impl Send for Defect
impl Sync for Defect
impl Unpin for Defect
impl UnsafeUnpin for Defect
impl UnwindSafe for Defect
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