pub enum LinkAction {
NoChange,
AttemptNegotiate,
GoDown,
}Expand description
Action returned by link_state_action — captures the three observable
transitions of the link state machine in link_fut.
Variants§
NoChange
Link state unchanged — no observable side-effect.
AttemptNegotiate
PHY just came up. The caller must run phy_negotiate() and only
flip the channel state on success.
GoDown
PHY just went down. The caller must report LinkState::Down to
embassy-net.
Trait Implementations§
Source§impl Clone for LinkAction
impl Clone for LinkAction
Source§fn clone(&self) -> LinkAction
fn clone(&self) -> LinkAction
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 LinkAction
impl Debug for LinkAction
Source§impl PartialEq for LinkAction
impl PartialEq for LinkAction
impl Copy for LinkAction
impl Eq for LinkAction
impl StructuralPartialEq for LinkAction
Auto Trait Implementations§
impl Freeze for LinkAction
impl RefUnwindSafe for LinkAction
impl Send for LinkAction
impl Sync for LinkAction
impl Unpin for LinkAction
impl UnsafeUnpin for LinkAction
impl UnwindSafe for LinkAction
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