Trait netstack3_base::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.

Object Safety§

This trait is not object safe.

Implementors§