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