pub struct Machine {
pub controllers: Vec<Controller>,
pub current: usize,
pub state: i8,
pub index: i8,
pub pending: i8,
pub transition: i8,
}Expand description
The runner’s fields (StateMachineComponent): the current interface, state, its index, pending
state, pending transition.
Fields§
§controllers: Vec<Controller>The building’s controllers, in component order.
current: usizeThe controller that handles the current state.
state: i8The current state.
index: i8The index of the current state in its controller’s table.
pending: i8The state to enter next (-1: none).
transition: i8The transition requested (-1: none).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Machine
impl RefUnwindSafe for Machine
impl Send for Machine
impl Sync for Machine
impl Unpin for Machine
impl UnsafeUnpin for Machine
impl UnwindSafe for Machine
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