pub struct LinkStatus {
pub speed: u32,
pub full_duplex: bool,
pub autoneg: bool,
pub link_up: bool,
}Expand description
Link status information
Fields§
§speed: u32Link speed in Mbps (0 if down)
full_duplex: boolFull duplex if true
autoneg: boolAuto-negotiation enabled
link_up: boolLink is up
Trait Implementations§
Source§impl Clone for LinkStatus
impl Clone for LinkStatus
Source§fn clone(&self) -> LinkStatus
fn clone(&self) -> LinkStatus
Returns a duplicate of the value. Read more
1.0.0 · 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 LinkStatus
impl Debug for LinkStatus
Source§impl Default for LinkStatus
impl Default for LinkStatus
Source§fn default() -> LinkStatus
fn default() -> LinkStatus
Returns the “default value” for a type. Read more
impl Copy for LinkStatus
Auto Trait Implementations§
impl Freeze for LinkStatus
impl RefUnwindSafe for LinkStatus
impl Send for LinkStatus
impl Sync for LinkStatus
impl Unpin for LinkStatus
impl UnsafeUnpin for LinkStatus
impl UnwindSafe for LinkStatus
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