pub enum NodeAction {
SendFrame(Vec<u8>),
SetTimer(u64),
NoAction,
}Expand description
Represents the possible actions a POWERLINK node might need to perform in response to an event or a tick.
Variants§
SendFrame(Vec<u8>)
The node needs to send a frame over the network.
SetTimer(u64)
The node needs a timer to be set for the specified duration in microseconds.
When the timer expires, the application should call tick().
NoAction
No immediate action is required.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NodeAction
impl RefUnwindSafe for NodeAction
impl Send for NodeAction
impl Sync for NodeAction
impl Unpin for NodeAction
impl UnsafeUnpin for NodeAction
impl UnwindSafe for NodeAction
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