pub trait StrongDeviceIdentifier: DeviceIdentifier + PartialEq<Self::Weak> {
type Weak: WeakDeviceIdentifier<Strong = Self>;
// Required method
fn downgrade(&self) -> Self::Weak;
}
Expand description
A strong device reference.
StrongDeviceIdentifier
indicates that the referenced device is alive
while the instance exists.
Required Associated Types§
sourcetype Weak: WeakDeviceIdentifier<Strong = Self>
type Weak: WeakDeviceIdentifier<Strong = Self>
The weak version of this identifier.
Required Methods§
Object Safety§
This trait is not object safe.