Skip to main content

RegionUnits

Struct RegionUnits 

Source
pub struct RegionUnits {
Show 19 fields pub callback_meta: RegionUnit, pub sched_context: RegionUnit, pub sched_context_id: RegionUnit, pub sporadic_state: RegionUnit, pub sporadic_atomic: RegionUnit, pub remap_rule: RegionUnit, pub node_record: RegionUnit, pub concrete_session: RegionUnit, pub extra_session_id: RegionUnit, pub node_sched_entry: RegionUnit, pub dispatch_slot: RegionUnit, pub component_slot: RegionUnit, pub group_name: RegionUnit, pub group_sched_entry: RegionUnit, pub violation: RegionUnit, pub alive_slot: RegionUnit, pub slot_tag: RegionUnit, pub parameter_slot: RegionUnit, pub param_home: RegionUnit,
}
Expand description

The placement arithmetic and its data types live in nros-executor-layout (issue 1197) so a HOST build script can evaluate them for a target it is not compiling. Re-exported here because this is where every consumer already looks, and because NATIVE — the only part that names the types — has to live in the crate that owns them. Every element type the backing carves a table of, in declaration order.

The arena is absent on purpose: it is [MaybeUninit<u8>], size 1 align 1 by definition, and its LENGTH is a count rather than a unit.

Fields§

§callback_meta: RegionUnit§sched_context: RegionUnit§sched_context_id: RegionUnit§sporadic_state: RegionUnit§sporadic_atomic: RegionUnit

Placed only when Counts::alloc is set.

§remap_rule: RegionUnit§node_record: RegionUnit§concrete_session: RegionUnit§extra_session_id: RegionUnit§node_sched_entry: RegionUnit§dispatch_slot: RegionUnit§component_slot: RegionUnit§group_name: RegionUnit§group_sched_entry: RegionUnit§violation: RegionUnit§alive_slot: RegionUnit

Alive supervision’s per-SchedContext record, one per sc.

§slot_tag: RegionUnit

phase-476 W0 — the per-callback-slot lifetime tag (generation + owning node), one per cbs. Placed after every older region so each keeps its offset.

§parameter_slot: RegionUnit

phase-382 W3’ — one parameter-store slot (nros_params::ParameterSlot), one per Counts::params. Placed LAST, for the reason slot_tag was: an image that carves no store (params == 0) keeps every offset and the total it had before the region existed.

§param_home: RegionUnit

Issue 1812 — the parameter SERVICES’ home (nros_node’s ParamHome: their state, the shared request/reply buffer pair and the staging slot a remote set decodes its value into), one per Counts::param_home. Placed after the store’s slots for the same reason they are last: an image with no store keeps every offset and its total.

Trait Implementations§

Source§

impl Clone for RegionUnits

Source§

fn clone(&self) -> RegionUnits

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for RegionUnits

Source§

impl Debug for RegionUnits

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Eq for RegionUnits

Source§

impl PartialEq for RegionUnits

Source§

fn eq(&self, other: &RegionUnits) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for RegionUnits

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.