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