pub enum InterfaceKind {
GigabitEthernet,
FastEthernet,
TenGigabitEthernet,
Loopback,
Vlan,
Tunnel,
Serial,
BundleEther,
Management,
Unknown(String),
}Expand description
Interface type discriminant.
Variants§
GigabitEthernet
FastEthernet
TenGigabitEthernet
Loopback
Vlan
Layer-3 VLAN interface (interface Vlan<id>).
Tunnel
Serial
BundleEther
Management
Unknown(String)
Any interface type not matched by the parser.
Trait Implementations§
Source§impl Clone for InterfaceKind
impl Clone for InterfaceKind
Source§fn clone(&self) -> InterfaceKind
fn clone(&self) -> InterfaceKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InterfaceKind
impl Debug for InterfaceKind
Source§impl<'de> Deserialize<'de> for InterfaceKind
impl<'de> Deserialize<'de> for InterfaceKind
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<InterfaceKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<InterfaceKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for InterfaceKind
impl PartialEq for InterfaceKind
Source§fn eq(&self, other: &InterfaceKind) -> bool
fn eq(&self, other: &InterfaceKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for InterfaceKind
impl Serialize for InterfaceKind
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for InterfaceKind
Auto Trait Implementations§
impl Freeze for InterfaceKind
impl RefUnwindSafe for InterfaceKind
impl Send for InterfaceKind
impl Sync for InterfaceKind
impl Unpin for InterfaceKind
impl UnsafeUnpin for InterfaceKind
impl UnwindSafe for InterfaceKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more