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