Skip to main content

MachineSchema

Struct MachineSchema 

Source
pub struct MachineSchema {
Show 17 fields pub machine: MachineId, pub version: u32, pub rust: RustBinding, pub state: StateSchema, pub inputs: EnumSchema, pub surface_only_inputs: Vec<InputVariantId>, pub runtime_internal_inputs: Vec<InputVariantId>, pub signals: EnumSchema, pub effects: EnumSchema, pub helpers: Vec<HelperSchema>, pub derived: Vec<HelperSchema>, pub command_plans: Vec<CommandPlanSchema>, pub invariants: Vec<InvariantSchema>, pub transitions: Vec<TransitionSchema>, pub effect_dispositions: Vec<EffectDispositionRule>, pub named_types: Vec<NamedTypeBinding>, pub ci_step_limit: Option<u32>,
}

Fields§

§machine: MachineId§version: u32§rust: RustBinding§state: StateSchema§inputs: EnumSchema§surface_only_inputs: Vec<InputVariantId>§runtime_internal_inputs: Vec<InputVariantId>

Inputs that are part of the DSL alphabet but intentionally internal to machine/composition drivers rather than public runtime command surfaces.

§signals: EnumSchema§effects: EnumSchema§helpers: Vec<HelperSchema>§derived: Vec<HelperSchema>§command_plans: Vec<CommandPlanSchema>

Generated command/capability plans that group existing inputs, transitions, guards, and effects into an auditable authority surface.

§invariants: Vec<InvariantSchema>§transitions: Vec<TransitionSchema>§effect_dispositions: Vec<EffectDispositionRule>§named_types: Vec<NamedTypeBinding>

Authoritative Rust-type mapping for every TypeRef::Named(NamedTypeId) referenced in this schema. The codegen consults this table rather than matching on the type’s name; a NamedTypeId referenced without a matching binding is a schema-construction error.

§ci_step_limit: Option<u32>

Override the CI step_limit for individual machine TLC verification. Machines with many state fields (e.g. a rich MobMachine flow/work region) may need a lower limit to keep CI verification tractable. None uses the codegen default (6 for CI, 8 for deep).

Implementations§

Source§

impl MachineSchema

Source

pub fn named_type_binding( &self, name: &NamedTypeId, ) -> Option<&NamedTypeBinding>

Look up the authoritative Rust binding for a named type referenced by this schema. Returns None if the type is unbound.

Source§

impl MachineSchema

Trait Implementations§

Source§

impl Clone for MachineSchema

Source§

fn clone(&self) -> MachineSchema

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 Debug for MachineSchema

Source§

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

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

impl Eq for MachineSchema

Source§

impl PartialEq for MachineSchema

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for MachineSchema

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> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> Same for T

Source§

type Output = T

Should always be Self
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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more