Trait netstack3_base::WeakDeviceIdentifier

source ·
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§

source

type Strong: StrongDeviceIdentifier<Weak = Self>

The strong version of this identifier.

Required Methods§

source

fn upgrade(&self) -> Option<Self::Strong>

Attempts to upgrade this weak ID to a strong ID.

Returns None if the resource has been destroyed.

Object Safety§

This trait is not object safe.

Implementors§