Struct rubble::link::Cmd[][src]

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: RadioCmd

Radio configuration request.

next_update: NextUpdate

Time 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: bool

Whether 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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.