pub struct LinkState {
pub up: bool,
pub speed: Speed,
pub duplex: Duplex,
}Expand description
Negotiated link state reported by the PHY.
Shape matches esp_hal::ethernet::mac::LinkState; the up flag
signals whether a carrier is present. When up == false the
speed and duplex fields are unspecified — they may hold the
last known good values or any default the driver chose. Callers
must check up before acting on the negotiated parameters.
Fields§
§up: boolWhether the link is currently established (carrier present).
speed: SpeedNegotiated link speed. Valid only when up == true.
duplex: DuplexNegotiated duplex mode. Valid only when up == true.
Implementations§
Trait Implementations§
impl Copy for LinkState
impl Eq for LinkState
impl StructuralPartialEq for LinkState
Auto Trait Implementations§
impl Freeze for LinkState
impl RefUnwindSafe for LinkState
impl Send for LinkState
impl Sync for LinkState
impl Unpin for LinkState
impl UnsafeUnpin for LinkState
impl UnwindSafe for LinkState
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