#[repr(C)]pub struct ConfigRegion {
pub version: u8,
pub param_count: u8,
pub update_seq: u16,
pub _pad: [u8; 4],
pub update_ns: u64,
pub params: [i64; 32],
pub types: [u8; 32],
}Expand description
Runtime configuration region — read by strategy, written by host.
Fixed-size (528 bytes). Each slot is 8 bytes (i64) with a type tag. Slot 0..MAX_CONFIG_PARAMS-1 are available for user-defined parameters.
Fields§
§version: u8ABI version (currently 1).
param_count: u8Number of populated parameter slots.
update_seq: u16Incremented on every config update (strategy can detect changes).
_pad: [u8; 4]§update_ns: u64Timestamp of last config update (nanoseconds since epoch).
params: [i64; 32]Parameter values (i64, interpret per your schema).
types: [u8; 32]Parameter type tags: 0=i64, 1=f64_bits, 2=bool (0/1), 3=bps (i32 in lower 32 bits).
Implementations§
Source§impl ConfigRegion
impl ConfigRegion
Sourcepub fn is_updated(&self, last_seq: u16) -> bool
pub fn is_updated(&self, last_seq: u16) -> bool
Whether config has been updated (compare against last seen seq).
Trait Implementations§
Source§impl Clone for ConfigRegion
impl Clone for ConfigRegion
Source§fn clone(&self) -> ConfigRegion
fn clone(&self) -> ConfigRegion
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for ConfigRegion
impl Default for ConfigRegion
impl Copy for ConfigRegion
Auto Trait Implementations§
impl Freeze for ConfigRegion
impl RefUnwindSafe for ConfigRegion
impl Send for ConfigRegion
impl Sync for ConfigRegion
impl Unpin for ConfigRegion
impl UnsafeUnpin for ConfigRegion
impl UnwindSafe for ConfigRegion
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