pub struct DeviceHealth { /* private fields */ }Expand description
The lost-device latch of one device. Clone shares it.
Implementations§
Source§impl DeviceHealth
impl DeviceHealth
Sourcepub fn install(device: &Device) -> Self
pub fn install(device: &Device) -> Self
Install a lost-device latch on device. It replaces any lost-device
callback the device had: install it once per device, where it is
opened, and hand the latch to every renderer on that device.
Sourcepub fn same_device(&self, other: &Self) -> bool
pub fn same_device(&self, other: &Self) -> bool
Whether self and other are the latch of one device.
Trait Implementations§
Source§impl Clone for DeviceHealth
impl Clone for DeviceHealth
Auto Trait Implementations§
impl Freeze for DeviceHealth
impl RefUnwindSafe for DeviceHealth
impl Send for DeviceHealth
impl Sync for DeviceHealth
impl Unpin for DeviceHealth
impl UnsafeUnpin for DeviceHealth
impl UnwindSafe for DeviceHealth
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