pub struct RgbControlLease { /* private fields */ }Expand description
0x8071 software control a lighting write left asserted, with the
control and event flags the device reported before that claim.
A volatile effect shows only while software control is held, so a
successful write keeps it. A long-lived host that leaves owes it back
through release_rgb_control: G HUB and
Solaar both return LED control to the firmware on exit. Disconnects and
crashes cannot send it; the firmware drops volatile state on power loss.
Every write also records the unit ID the device reported (0x0003), so a
later write and the release can tell the claimed device from another one
paired to the same receiver slot since.
Implementations§
Source§impl RgbControlLease
impl RgbControlLease
Sourcepub fn continues(&self, earlier: &Self) -> bool
pub fn continues(&self, earlier: &Self) -> bool
Whether this lease, from a later write through the same connection,
continues earlier’s claim: both writes reached the same device. A
write to another device does not, even one that found control already
held, and its flags replace the recorded ones so that device is still
handed back.