pub struct WeakDevice { /* private fields */ }Expand description
Weak reference to the device. Must be upgraded to strong reference before use. Upgrade will fail if last strong reference to device was dropped.
Implementations§
Trait Implementations§
Source§impl Clone for WeakDevice
impl Clone for WeakDevice
Source§fn clone(&self) -> WeakDevice
fn clone(&self) -> WeakDevice
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WeakDevice
impl Debug for WeakDevice
Source§impl PartialEq for WeakDevice
impl PartialEq for WeakDevice
Source§impl PartialEq<WeakDevice> for Device
impl PartialEq<WeakDevice> for Device
Source§impl PartialEq<WeakDevice> for &Device
impl PartialEq<WeakDevice> for &Device
Auto Trait Implementations§
impl !RefUnwindSafe for WeakDevice
impl !UnwindSafe for WeakDevice
impl Freeze for WeakDevice
impl Send for WeakDevice
impl Sync for WeakDevice
impl Unpin for WeakDevice
impl UnsafeUnpin for WeakDevice
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