Skip to main content

StrongDeviceIdentifier

Trait StrongDeviceIdentifier 

Source
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§

Source

type Weak: WeakDeviceIdentifier<Strong = Self>

The weak version of this identifier.

Required Methods§

Source

fn downgrade(&self) -> Self::Weak

Returns a weak ID for this strong ID.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§