pub enum StateEntry {
AtomicSlot(Arc<AtomicU32>),
ReadProbe(Arc<ReadProbeFn>),
Trigger {
last_result: Arc<AtomicU32>,
callback: Arc<TriggerFn>,
},
}Expand description
Entry bound to a 4-byte aligned offset inside a StateBank.
Variants§
AtomicSlot(Arc<AtomicU32>)
Lock-free atomic 32-bit slot (read-only state slot or writable runtime knob).
ReadProbe(Arc<ReadProbeFn>)
Synchronous read callback computed on demand during read32.
Trigger
Write-triggered callback that stores its returned 32-bit status code into
last_result for immediate readback or subsequent read32/poll32.
Trait Implementations§
Source§impl Clone for StateEntry
impl Clone for StateEntry
Auto Trait Implementations§
impl !RefUnwindSafe for StateEntry
impl !UnwindSafe for StateEntry
impl Freeze for StateEntry
impl Send for StateEntry
impl Sync for StateEntry
impl Unpin for StateEntry
impl UnsafeUnpin for StateEntry
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