Enum kernel::net::phy::DeviceState
source · pub enum DeviceState {
Down,
Ready,
Halted,
Error,
Up,
Running,
NoLink,
CableTest,
}
Expand description
PHY state machine states.
Corresponds to the kernel’s enum phy_state
.
Some of PHY drivers access to the state of PHY’s software state machine.
Variants§
Down
PHY device and driver are not ready for anything.
Ready
PHY is ready to send and receive packets.
Halted
PHY is up, but no polling or interrupts are done.
Error
PHY is up, but is in an error state.
Up
PHY and attached device are ready to do work.
Running
PHY is currently running.
NoLink
PHY is up, but not currently plugged in.
CableTest
PHY is performing a cable test.
Trait Implementations§
source§impl PartialEq<DeviceState> for DeviceState
impl PartialEq<DeviceState> for DeviceState
source§fn eq(&self, other: &DeviceState) -> bool
fn eq(&self, other: &DeviceState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for DeviceState
impl StructuralEq for DeviceState
impl StructuralPartialEq for DeviceState
Auto Trait Implementations§
impl RefUnwindSafe for DeviceState
impl Send for DeviceState
impl Sync for DeviceState
impl Unpin for DeviceState
impl UnwindSafe for DeviceState
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