Skip to main content

Names

Trait Names 

Source
pub trait Names {
    // Required method
    fn names(&self, list: u8) -> Vec<String>;

    // Provided method
    fn type_help(&self, _list: u8, ty: &str) -> String { ... }
}
Expand description

the names a NAME parameter takes (interfaces of a device); “” in a name stands for a number (“Loopback”, “GigabitEthernet0/0/0.*”)

Required Methods§

Source

fn names(&self, list: u8) -> Vec<String>

Provided Methods§

Source

fn type_help(&self, _list: u8, ty: &str) -> String

the help text of a type of names (“GigabitEthernet” -> “GigabitEthernet IEEE 802.3z”)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§