Skip to main content

ConstructedRealtimeModel

Struct ConstructedRealtimeModel 

Source
pub struct ConstructedRealtimeModel<A, B, M>{ /* private fields */ }
Expand description

Fully constructed execution paired with its initial mutable model state.

Implementations§

Source§

impl<A, B, M> ConstructedRealtimeModel<A, B, M>

Source

pub const fn selected(&self) -> &SelectedRealtimeRealization

Returns the immutable selected realization.

Source

pub const fn execution( &self, ) -> &RealtimeLayerwiseRuntime<A, B, M::State, M::ResidentPolicy, M::BoundedPolicy>

Returns the selected resident or bounded runtime.

Source

pub fn execution_mut( &mut self, ) -> &mut RealtimeLayerwiseRuntime<A, B, M::State, M::ResidentPolicy, M::BoundedPolicy>

Mutably borrows the selected resident or bounded runtime.

Source

pub const fn state(&self) -> &M::State

Returns realized architecture state.

Source

pub fn state_mut(&mut self) -> &mut M::State

Mutably borrows realized architecture state.

Source

pub fn execution_and_state_mut( &mut self, ) -> (&mut RealtimeLayerwiseRuntime<A, B, M::State, M::ResidentPolicy, M::BoundedPolicy>, &mut M::State)

Mutably borrows execution and state together for one atomic model pass.

Source

pub fn constructed_execution_and_state_mut( &mut self, ) -> (&mut ConstructedRealtimeExecution<A, B, M>, &mut M::State)

Mutably borrows detached execution and state as separate typed values.

Source

pub const fn mechanisms(&self) -> &M

Returns generic construction mechanisms for reports or later composition.

Source

pub fn mechanisms_mut(&mut self) -> &mut M

Mutably borrows generic mechanisms.

Source

pub fn into_execution_and_state( self, ) -> (ConstructedRealtimeExecution<A, B, M>, M::State)

Consumes the combined model into static execution and mutable state.

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.