#[non_exhaustive]pub enum Action {
Write(Vec<u8>),
Reset,
QuerySlot,
SetTimer {
after: Duration,
},
Notify(Notification),
}Expand description
An output the driver loop must perform.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Write(Vec<u8>)
Write one link-layer frame to the device.
Reset
Issue the CA_RESET ioctl.
QuerySlot
Issue the CA_GET_SLOT_INFO ioctl.
SetTimer
Arm the poll/timer to fire after after (coalesced: the latest wins).
Fields
§
after: DurationDelay before the next Event::Tick should be delivered.
Notify(Notification)
Surface a host-facing Notification.
Trait Implementations§
impl Eq for Action
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Forget for Action
impl Freeze for Actionwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<u16>: Freeze,
PhantomData<String>: Freeze,
impl Move for Action
impl RefUnwindSafe for Action
impl Send for Actionwhere
RawVecInner: Send,
impl Sync for Actionwhere
RawVecInner: Sync,
impl Unpin for Action
impl UnsafeUnpin for Actionwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<u16>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for Actionwhere
RawVecInner: UnwindSafe,
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