#[non_exhaustive]pub enum PortId {
InterfaceAlias(Bytes),
PortComponent(Bytes),
MacAddress(MacAddr),
NetworkAddress(IpAddr),
InterfaceName(Bytes),
AgentCircuitId(Bytes),
Local(Bytes),
Other {
subtype: u8,
value: Bytes,
},
}Available on crate feature
lldp only.Expand description
Port ID TLV value. Subtypes per IEEE 802.1AB §8.5.3.2.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InterfaceAlias(Bytes)
Subtype 1.
PortComponent(Bytes)
Subtype 2.
MacAddress(MacAddr)
Subtype 3.
NetworkAddress(IpAddr)
Subtype 4.
InterfaceName(Bytes)
Subtype 5 — common on Cisco / Juniper / Arista.
AgentCircuitId(Bytes)
Subtype 6.
Local(Bytes)
Subtype 7.
Other
Reserved / unknown subtype.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PortId
Available on crate feature serde only.
impl<'de> Deserialize<'de> for PortId
Available on crate feature
serde only.Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PortId
impl StructuralPartialEq for PortId
Auto Trait Implementations§
impl !Freeze for PortId
impl RefUnwindSafe for PortId
impl Send for PortId
impl Sync for PortId
impl Unpin for PortId
impl UnsafeUnpin for PortId
impl UnwindSafe for PortId
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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