NetworkInterface

Trait NetworkInterface 

Source
pub trait NetworkInterface: Send + Default {
    // Required methods
    fn name(&self) -> String;
    fn addresses(&self) -> Vec<Address>;
    fn peer_name(&self) -> Option<String>;
    fn index(&self) -> Option<u32>;
    fn id(&self) -> Option<u32>;
}

Required Methods§

Source

fn name(&self) -> String

Source

fn addresses(&self) -> Vec<Address>

Source

fn peer_name(&self) -> Option<String>

Source

fn index(&self) -> Option<u32>

Source

fn id(&self) -> Option<u32>

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§