You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Automatically call Device::ungrab() on Drop -- does not guarantee an ungrab if the app does not unwind or exit cleanly, but if users ensure that it does exit cleanly, guarantees the kernel grab release will be attempted on Drop.
Expose Device::is_grabbed() that just returns the value of .grabbed (private field) so that users can inspect the grabbed state without having to call grab() or ungrab(), which still doesn't tell you the current state, and without having to keep track of it separately in simple cases.
Derive Debug for Device -- small change, but a huge convenience to the annoyance of not being able to derive Debug on a struct with a Device field.