pub struct Port {
pub name: Option<String>,
pub connected: Option<bool>,
pub speed: Option<u32>,
pub max_speed: Option<u32>,
pub energy_saving: Option<String>,
pub mode: Option<String>,
}Expand description
A port of the LAN, from the module eth_ports of the web interface.
Fields§
§name: Option<String>Like LAN 1.
connected: Option<bool>§speed: Option<u32>The speed of the link in Mbit/s, 0 without a link.
max_speed: Option<u32>The highest speed of the port in Mbit/s.
energy_saving: Option<String>Energy Efficient Ethernet, like on or off.
mode: Option<String>Like default or green.
Trait Implementations§
impl Eq for Port
impl StructuralPartialEq for Port
Auto Trait Implementations§
impl Forget for Port
impl Freeze for Port
impl Move 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