pub struct Feature {
pub bit: u8,
pub code: &'static str,
pub name: &'static str,
pub conform: Conform,
}Expand description
One bit of a cluster’s FeatureMap (§7.13.2).
Fields§
§bit: u8Which bit.
code: &'static strThe short code the conformance expressions name it by — “LT”, “OFFONLY”.
name: &'static strThe readable name — “Lighting”.
conform: ConformWhen the feature itself may be claimed. Features have conformance too: On/Off’s
Lighting is optional only when OffOnly is absent.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Feature
impl Freeze for Feature
impl Move for Feature
impl RefUnwindSafe for Feature
impl Send for Feature
impl Sync for Feature
impl Unpin for Feature
impl UnsafeUnpin for Feature
impl UnwindSafe for Feature
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