Skip to main content

Inputs

Struct Inputs 

Source
pub struct Inputs<'a> {
    pub state: &'a SystemState,
    pub defs: &'a UnitDefs,
    pub failed_since: &'a BTreeMap<UnitId, Timestamp>,
    pub known_drivers: &'a BTreeMap<UnitId, DriverRef>,
    pub current_planarian_built: bool,
    pub alternatives: &'a BTreeMap<String, Vec<Value>>,
    pub lost_changes: &'a BTreeMap<UnitId, (ChangeId, BTreeMap<String, Value>)>,
}

Fields§

§state: &'a SystemState§defs: &'a UnitDefs§failed_since: &'a BTreeMap<UnitId, Timestamp>

When each unit was first observed definitely Failed (tie-break in a cycle).

§known_drivers: &'a BTreeMap<UnitId, DriverRef>

The driver each device was last seen bound to.

§current_planarian_built: bool

The running generation was built by a Planarian transaction. Owner-built generations are never rolled back autonomously (owner decision Q3).

§alternatives: &'a BTreeMap<String, Vec<Value>>

For each runtime option a unit names as its repair (runtime_repair), the other values available now (for Wi-Fi: known networks in range).

§lost_changes: &'a BTreeMap<UnitId, (ChangeId, BTreeMap<String, Value>)>

For a unit, the catalog change last committed for it whose assignments the override file no longer carries (§13, P22).

Auto Trait Implementations§

§

impl<'a> Freeze for Inputs<'a>

§

impl<'a> RefUnwindSafe for Inputs<'a>

§

impl<'a> Send for Inputs<'a>

§

impl<'a> Sync for Inputs<'a>

§

impl<'a> Unpin for Inputs<'a>

§

impl<'a> UnsafeUnpin for Inputs<'a>

§

impl<'a> UnwindSafe for Inputs<'a>

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> 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> 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 = 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.