pub struct DeviceSleepGuard<'a> {
pub(crate) device_control_tube: &'a Tube,
pub(crate) devices_state: DevicesState,
}Expand description
A guard to guarantee that all devices are sleeping during its scope.
When this guard is dropped, it wakes the devices.
Fields§
§device_control_tube: &'a Tube§devices_state: DevicesStateImplementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for DeviceSleepGuard<'a>
impl<'a> RefUnwindSafe for DeviceSleepGuard<'a>
impl<'a> Send for DeviceSleepGuard<'a>
impl<'a> Sync for DeviceSleepGuard<'a>
impl<'a> Unpin for DeviceSleepGuard<'a>
impl<'a> UnwindSafe for DeviceSleepGuard<'a>
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