pub trait WeakDeviceIdentifier: DeviceIdentifier + PartialEq<Self::Strong> {
type Strong: StrongDeviceIdentifier<Weak = Self>;
// Required method
fn upgrade(&self) -> Option<Self::Strong>;
}Expand description
A weak device reference.
This is the weak reference equivalent of StrongDeviceIdentifier.
Required Associated Types§
Sourcetype Strong: StrongDeviceIdentifier<Weak = Self>
type Strong: StrongDeviceIdentifier<Weak = Self>
The strong version of this identifier.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".