pub struct Device<T> { /* private fields */ }
Implementations§
Source§impl<T: DriverGeneric> Device<T>
impl<T: DriverGeneric> Device<T>
pub fn lock(&self) -> Result<DeviceGuard<T>, GetDeviceError>
pub fn try_lock(&self) -> Result<DeviceGuard<T>, GetDeviceError>
pub fn descriptor(&self) -> &Descriptor
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Device<T>
impl<T> !RefUnwindSafe for Device<T>
impl<T> Send for Device<T>where
T: Send,
impl<T> Sync for Device<T>where
T: Sync,
impl<T> Unpin for Device<T>where
T: Unpin,
impl<T> !UnwindSafe for Device<T>
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