pub struct DeviceType {
pub device_type: u32,
pub revision: u16,
}Expand description
A device type an endpoint conforms to (§9.5.5.1).
Part of the node’s shape, not of any one cluster: §9.5 requires every endpoint to declare at least one, the Descriptor cluster merely publishes it, and §6.6.6.2’s access control matches ACL targets against it. Holding it on the endpoint is what keeps those three readings of the same fact from disagreeing.
Fields§
§device_type: u32DeviceType [0] — a devtype-id, the identifier from the Device Library.
revision: u16Revision [1] — “the implemented revision of the device type definition”, min 1.
Implementations§
Trait Implementations§
Source§impl Clone for DeviceType
impl Clone for DeviceType
impl Copy for DeviceType
Source§impl Debug for DeviceType
impl Debug for DeviceType
impl Eq for DeviceType
Source§impl PartialEq for DeviceType
impl PartialEq for DeviceType
impl StructuralPartialEq for DeviceType
Auto Trait Implementations§
impl Forget for DeviceType
impl Freeze for DeviceType
impl Move for DeviceType
impl RefUnwindSafe for DeviceType
impl Send for DeviceType
impl Sync for DeviceType
impl Unpin for DeviceType
impl UnsafeUnpin for DeviceType
impl UnwindSafe for DeviceType
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