pub struct DeviceOwner { /* private fields */ }Implementations§
Source§impl DeviceOwner
impl DeviceOwner
pub fn new<T: DriverGeneric>(descriptor: Descriptor, device: T) -> Self
pub fn weak<T: DriverGeneric>(&self) -> Result<Device<T>, GetDeviceError>
pub fn is<T: DriverGeneric>(&self) -> bool
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> 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