pub struct Device { /* private fields */ }
Expand description
Device abstraction
Implementations§
Source§impl Device
impl Device
Sourcepub fn get_default() -> Result<Arc<Self>>
pub fn get_default() -> Result<Arc<Self>>
Get the default device
Sourcepub fn properties(&self) -> &DeviceProperties
pub fn properties(&self) -> &DeviceProperties
Get device properties
Sourcepub fn backend(&self) -> BackendType
pub fn backend(&self) -> BackendType
Get backend type
Auto Trait Implementations§
impl Freeze for Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnwindSafe for Device
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