pub struct DeviceHolder { /* private fields */ }
Implementations§
Source§impl DeviceHolder
impl DeviceHolder
pub fn new(device: impl Device + 'static) -> Self
pub fn ensure_unique(&self)
pub fn take_when_dropped(&self) -> impl Future<Output = DeviceHolder>
Trait Implementations§
Source§impl Deref for DeviceHolder
impl Deref for DeviceHolder
Auto Trait Implementations§
impl !Freeze for DeviceHolder
impl !RefUnwindSafe for DeviceHolder
impl Send for DeviceHolder
impl Sync for DeviceHolder
impl Unpin for DeviceHolder
impl !UnwindSafe for DeviceHolder
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