pub struct MetaLibStateMachine {
pub state: MetaLibState,
pub transitions: usize,
pub history: Vec<String>,
}Expand description
A state machine controller for MetaLib.
Fields§
§state: MetaLibState§transitions: usize§history: Vec<String>Implementations§
Source§impl MetaLibStateMachine
impl MetaLibStateMachine
pub fn new() -> Self
pub fn transition_to(&mut self, new_state: MetaLibState) -> bool
pub fn start(&mut self) -> bool
pub fn pause(&mut self) -> bool
pub fn complete(&mut self) -> bool
pub fn fail(&mut self, msg: &str) -> bool
pub fn num_transitions(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MetaLibStateMachine
impl RefUnwindSafe for MetaLibStateMachine
impl Send for MetaLibStateMachine
impl Sync for MetaLibStateMachine
impl Unpin for MetaLibStateMachine
impl UnsafeUnpin for MetaLibStateMachine
impl UnwindSafe for MetaLibStateMachine
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