pub struct StandaloneDevice {
pub address: RawDeviceAddress,
pub display_name: String,
pub manufacturer: Option<String>,
pub serial_number: Option<String>,
pub unit_id: [u8; 4],
pub kind: DeviceKind,
pub online: bool,
pub capabilities: Option<Capabilities>,
pub light_capabilities: Option<LightCapabilities>,
pub driver_id: String,
pub registry_model_id: Option<String>,
}Expand description
A standalone device that is not a HID++ receiver pairing slot.
This is the inventory bridge for Litra and future non-HID++ categories.
Receiver-backed devices continue to use PairedDevice inside
DeviceInventory.
Fields§
§address: RawDeviceAddressRaw HID address used to re-find the interface.
display_name: StringHuman-readable name supplied by the OS/HID descriptor.
manufacturer: Option<String>Human-readable manufacturer, when available.
serial_number: Option<String>Device serial, when the HID backend exposes one.
unit_id: [u8; 4]Stable four-byte identity when the protocol/driver provides one. Raw HID drivers may use zeroes when no such field exists.
kind: DeviceKindIdentity classification. Capability fields gate controls.
online: boolWhether this interface was present in the latest completed scan.
capabilities: Option<Capabilities>HID++ capabilities are absent for a non-HID++ device.
light_capabilities: Option<LightCapabilities>Standalone capability descriptor, if the selected driver recognizes it.
driver_id: StringStable identifier of the driver family that owns this raw interface. This is deliberately separate from the product ID so a future family can share a protocol driver across several product variants.
registry_model_id: Option<String>Optional model-level identity in the OpenLogi asset registry.
This is deliberately appended: StandaloneDevice crosses the
append-only GUI↔agent bincode wire format.
Trait Implementations§
Source§impl Clone for StandaloneDevice
impl Clone for StandaloneDevice
Source§fn clone(&self) -> StandaloneDevice
fn clone(&self) -> StandaloneDevice
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StandaloneDevice
impl Debug for StandaloneDevice
Source§impl<'de> Deserialize<'de> for StandaloneDevice
impl<'de> Deserialize<'de> for StandaloneDevice
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for StandaloneDevice
Source§impl PartialEq for StandaloneDevice
impl PartialEq for StandaloneDevice
Source§impl Serialize for StandaloneDevice
impl Serialize for StandaloneDevice
impl StructuralPartialEq for StandaloneDevice
Auto Trait Implementations§
impl Freeze for StandaloneDevice
impl RefUnwindSafe for StandaloneDevice
impl Send for StandaloneDevice
impl Sync for StandaloneDevice
impl Unpin for StandaloneDevice
impl UnsafeUnpin for StandaloneDevice
impl UnwindSafe for StandaloneDevice
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.