pub struct Port {
pub index: u32,
pub name: Option<String>,
pub state: PortState,
pub speed_mbps: Option<u32>,
pub max_speed_mbps: Option<u32>,
pub connector: Option<PortConnector>,
pub poe: Option<PoeInfo>,
}Expand description
Port on a switch or gateway.
Fields§
§index: u32§name: Option<String>§state: PortState§speed_mbps: Option<u32>§max_speed_mbps: Option<u32>§connector: Option<PortConnector>§poe: Option<PoeInfo>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Port
impl<'de> Deserialize<'de> for Port
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
Auto Trait Implementations§
impl Freeze for Port
impl RefUnwindSafe for Port
impl Send for Port
impl Sync for Port
impl Unpin for Port
impl UnsafeUnpin for Port
impl UnwindSafe for Port
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