pub struct Cmd {
pub radio: RadioCmd,
pub next_update: NextUpdate,
pub queued_work: bool,
}Expand description
Command returned by the Link-Layer to the user.
Specifies how the radio should be configured and when/if to call LinkLayer::update again.
Fields§
§radio: RadioCmdRadio configuration request.
next_update: NextUpdateTime until LinkLayer::update should be called.
If this is None, update doesn’t need to be called because the Link-Layer is in Standby
state.
queued_work: boolWhether the Link-Layer code has enqueued more work into the packet queue.
If this is true, the caller needs to ensure that the queue is drained and processed by
calling the Responder. The apps idle loop might unconditionally do that, in which case
checking this flag is not necessary.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Cmd
impl RefUnwindSafe for Cmd
impl Send for Cmd
impl Sync for Cmd
impl Unpin for Cmd
impl UnwindSafe for Cmd
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