pub struct AsyncOptions {
    pub power: Option<i8>,
    pub timeout: Option<Duration>,
    pub poll_period: Duration,
    pub wake_fn: Option<&'static fn(cx: &mut Context<'_>, d: Duration)>,
}
Expand description

Options for async driver calls

Fields

power: Option<i8>

Power option, for transmit operations

timeout: Option<Duration>
👎 Deprecated:

Timeouts must (currently) be implemented outside this module

Timeout option for underlying radio operations

poll_period: Duration

Period for polling on operation status with custom wakers

wake_fn: Option<&'static fn(cx: &mut Context<'_>, d: Duration)>

Waker function to be called in the Poll method

Trait Implementations

Returns the “default value” for a type. 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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.