pub struct DeviceGuard<'a> { /* private fields */ }Expand description
Guard making sure only the locked device can be used.
Automatically releases the lock when dropped.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for DeviceGuard<'a>
impl<'a> !RefUnwindSafe for DeviceGuard<'a>
impl<'a> !Send for DeviceGuard<'a>
impl<'a> !Sync for DeviceGuard<'a>
impl<'a> Unpin for DeviceGuard<'a>
impl<'a> !UnwindSafe for DeviceGuard<'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