pub struct PeerIdentity {
pub presence: PeerPresence,
pub role: PeerRole,
pub category: DeviceCategory,
pub device_id: String,
pub device_family: String,
pub device_name: String,
}Expand description
A peer’s presence, role and device identity (qar_peer_spec_get_presence, _get_role,
_get_category, _get_device_id, _get_device_family, _get_device_name), read with the
rest of crate::PeerInfo. The device id and name can change while the peer runs (a serving
app refines them once the device reports its model): re-read them in a peer update.
Fields§
§presence: PeerPresence§role: PeerRole§category: DeviceCategory§device_id: StringAn open UTF-8 id of the exact device or app ("MetaQuest3", "DesktopWindows").
device_family: StringThe device family ("MetaQuest"), the fallback for an unknown id; empty for none.
device_name: StringThe device’s human name ("Meta Quest 3"); empty when nothing better than the id is
known.
Trait Implementations§
Source§impl Clone for PeerIdentity
impl Clone for PeerIdentity
Source§impl Debug for PeerIdentity
impl Debug for PeerIdentity
impl Eq for PeerIdentity
Source§impl PartialEq for PeerIdentity
impl PartialEq for PeerIdentity
impl StructuralPartialEq for PeerIdentity
Auto Trait Implementations§
impl Freeze for PeerIdentity
impl RefUnwindSafe for PeerIdentity
impl Send for PeerIdentity
impl Sync for PeerIdentity
impl Unpin for PeerIdentity
impl UnsafeUnpin for PeerIdentity
impl UnwindSafe for PeerIdentity
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