Struct radio::nonblocking::AsyncOptions
source · 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§
Auto Trait Implementations§
impl Freeze for AsyncOptions
impl RefUnwindSafe for AsyncOptions
impl Send for AsyncOptions
impl Sync for AsyncOptions
impl Unpin for AsyncOptions
impl UnwindSafe for AsyncOptions
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