Enum reachability_core::PortType
source · pub enum PortType {
Unknown,
Ethernet,
WiFi,
SVI,
Loopback,
}
Expand description
PortType
is the type of port backing the L3 interface.
Variants§
Unknown
Unknown.
Ethernet
EthernetII or 802.3.
WiFi
Wireless LAN based on 802.11.
SVI
Switch virtual interface.
Loopback
Loopback.
Trait Implementations§
source§impl From<DeviceClass> for PortType
impl From<DeviceClass> for PortType
source§fn from(device_class: DeviceClass) -> Self
fn from(device_class: DeviceClass) -> Self
Converts to this type from the input type.
source§impl PartialEq for PortType
impl PartialEq for PortType
impl Copy for PortType
impl StructuralPartialEq for PortType
Auto Trait Implementations§
impl RefUnwindSafe for PortType
impl Send for PortType
impl Sync for PortType
impl Unpin for PortType
impl UnwindSafe for PortType
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
§impl<T> Encode<Ambiguous1> for T
impl<T> Encode<Ambiguous1> for T
§impl<T> Encode<Ambiguous2> for T
impl<T> Encode<Ambiguous2> for T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
impl<T, U> TryIntoExt<U> for Twhere U: TryFromExt<T>,
type Error = <U as TryFromExt<T>>::Error
§fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
Tries to perform the conversion.