netstack3_base

Trait DeviceIdentifier

Source
pub trait DeviceIdentifier:
    Clone
    + Debug
    + Eq
    + Hash
    + PartialEq
    + Send
    + Sync
    + 'static {
    // Required method
    fn is_loopback(&self) -> bool;
}
Expand description

An identifier for a device.

Required Methods§

Source

fn is_loopback(&self) -> bool

Returns true if the device is a loopback device.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§