pub struct CausalSystemState<I, O, C>{
pub causaloids: HashMap<u64, Causaloid<I, O, (), Arc<RwLock<C>>>>,
pub contexts: HashMap<u64, C>,
}Expand description
Mutable state container for the causal system.
This struct holds all mutable state during operation execution:
- Causaloids indexed by ID
- Contexts indexed by ID
§Type Parameters
I: Input genericO: Output genericC: Context generic
Fields§
§causaloids: HashMap<u64, Causaloid<I, O, (), Arc<RwLock<C>>>>§contexts: HashMap<u64, C>Implementations§
Trait Implementations§
Source§impl<I, O, C> Clone for CausalSystemState<I, O, C>
impl<I, O, C> Clone for CausalSystemState<I, O, C>
Source§impl<I, O, C> Debug for CausalSystemState<I, O, C>
impl<I, O, C> Debug for CausalSystemState<I, O, C>
Auto Trait Implementations§
impl<I, O, C> Freeze for CausalSystemState<I, O, C>
impl<I, O, C> RefUnwindSafe for CausalSystemState<I, O, C>
impl<I, O, C> Send for CausalSystemState<I, O, C>
impl<I, O, C> Sync for CausalSystemState<I, O, C>
impl<I, O, C> Unpin for CausalSystemState<I, O, C>
impl<I, O, C> UnwindSafe for CausalSystemState<I, O, C>
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