pub struct DeviceIdentity {
pub category: SourceDeviceCategory,
pub device_id: String,
pub device_family: Option<String>,
pub device_name: Option<String>,
}Expand description
The device an application describes itself as (QarPeerDeviceIdentity). Without one it
joins as a desktop PC with the fixed id of the host OS (DesktopWindows / DesktopLinux).
Ids and families are open UTF-8 strings ("Zed2i", "Zed"), matched by viewers against the
hub’s device catalog. An id the catalog does not know is fine: viewers fall back to the family,
then to the category, and show device_name.
Fields§
§category: SourceDeviceCategory§device_id: StringRequired and non-empty, e.g. "LuxonisOakD"; an empty id fails with
crate::StatusCode::ARGUMENT_NOT_SUPPORTED.
device_family: Option<String>Optional, e.g. "Luxonis".
device_name: Option<String>Optional, e.g. "OAK-D".
Trait Implementations§
Source§impl Clone for DeviceIdentity
impl Clone for DeviceIdentity
Source§impl Debug for DeviceIdentity
impl Debug for DeviceIdentity
Source§impl Default for DeviceIdentity
impl Default for DeviceIdentity
impl Eq for DeviceIdentity
Source§impl PartialEq for DeviceIdentity
impl PartialEq for DeviceIdentity
impl StructuralPartialEq for DeviceIdentity
Auto Trait Implementations§
impl Freeze for DeviceIdentity
impl RefUnwindSafe for DeviceIdentity
impl Send for DeviceIdentity
impl Sync for DeviceIdentity
impl Unpin for DeviceIdentity
impl UnsafeUnpin for DeviceIdentity
impl UnwindSafe for DeviceIdentity
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