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: ReceiverInfo§paired: Vec<PairedDevice>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
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