pub struct DeviceInventory {
pub receiver: ReceiverInfo,
pub paired: Vec<PairedDevice>,
}Expand description
One receiver and its paired devices — the unit the agent’s inventory snapshot is made of.
Crosses the agent↔GUI IPC (everything it embeds too: ReceiverInfo,
PairedDevice, battery/model-info/capability types). bincode encodes
field and variant order, so reordering, retyping, or wrapping any field
in this tree is a wire-format change and requires a PROTOCOL_VERSION
bump (guarded by openlogi-agent-core/tests/wire_format.rs).
Fields§
§receiver: ReceiverInfoThe receiver’s identity — synthetic (mirroring the device itself) for a direct Bluetooth/wired attachment.
paired: Vec<PairedDevice>The devices reached through this receiver; a direct attachment carries exactly one entry.
Trait Implementations§
Source§impl Clone for DeviceInventory
impl Clone for DeviceInventory
Source§fn clone(&self) -> DeviceInventory
fn clone(&self) -> DeviceInventory
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DeviceInventory
impl Debug for DeviceInventory
Source§impl<'de> Deserialize<'de> for DeviceInventory
impl<'de> Deserialize<'de> for DeviceInventory
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DeviceInventory
Source§impl PartialEq for DeviceInventory
impl PartialEq for DeviceInventory
Source§impl Serialize for DeviceInventory
impl Serialize for DeviceInventory
impl StructuralPartialEq for DeviceInventory
Auto Trait Implementations§
impl Freeze for DeviceInventory
impl RefUnwindSafe for DeviceInventory
impl Send for DeviceInventory
impl Sync for DeviceInventory
impl Unpin for DeviceInventory
impl UnsafeUnpin for DeviceInventory
impl UnwindSafe for DeviceInventory
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
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
Compare self to
key and return true if they are equal.