pub struct DpiInfo {
pub current: u16,
pub capabilities: DpiCapabilities,
}Expand description
Current DPI plus the supported values reported by the device.
Crosses the agent↔GUI IPC (read_dpi, DpiCapabilities included), so
field order is wire format — changes require a PROTOCOL_VERSION bump
(guarded by openlogi-agent-core/tests/wire_format.rs).
Fields§
§current: u16DPI currently configured on sensor 0.
capabilities: DpiCapabilitiesSupported values reported by the device for sensor 0.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DpiInfo
impl<'de> Deserialize<'de> for DpiInfo
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 DpiInfo
impl StructuralPartialEq for DpiInfo
Auto Trait Implementations§
impl Freeze for DpiInfo
impl RefUnwindSafe for DpiInfo
impl Send for DpiInfo
impl Sync for DpiInfo
impl Unpin for DpiInfo
impl UnsafeUnpin for DpiInfo
impl UnwindSafe for DpiInfo
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.