Struct macro_machines::example::Door
source · [−]pub struct Door { /* private fields */ }
Implementations
sourceimpl Door
impl Door
pub fn report_sizes()
pub fn new(extended_state: ExtendedState) -> Self
pub fn state(&self) -> &State
pub fn state_id(&self) -> StateId
pub fn state_data(&self) -> &StateData
pub fn extended_state(&self) -> &ExtendedState
pub fn extended_state_mut(&mut self) -> &mut ExtendedState
pub fn handle_event(
&mut self,
_event: Event<'_>
) -> Result<(), HandleEventException>
Trait Implementations
sourceimpl AsMut<ExtendedState> for Door
impl AsMut<ExtendedState> for Door
sourcefn as_mut(&mut self) -> &mut ExtendedState
fn as_mut(&mut self) -> &mut ExtendedState
Converts this type into a mutable reference of the (usually inferred) input type.
sourceimpl AsRef<ExtendedState> for Door
impl AsRef<ExtendedState> for Door
sourcefn as_ref(&self) -> &ExtendedState
fn as_ref(&self) -> &ExtendedState
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl MachineDotfile for Door
impl MachineDotfile for Door
sourcefn state_data_pretty_defaults() -> Vec<Vec<String>>
fn state_data_pretty_defaults() -> Vec<Vec<String>>
⚠ This function creates default values for each state data field and creates a pretty printed string of the value
fn name() -> &'static str
fn type_vars() -> Vec<String>
fn extended_state_names() -> Vec<&'static str>
fn extended_state_types() -> Vec<&'static str>
fn extended_state_defaults() -> Vec<&'static str>
fn self_reference() -> &'static str
fn states() -> Vec<&'static str>
fn state_initial() -> &'static str
fn state_terminal() -> &'static str
fn state_data_names() -> Vec<Vec<&'static str>>
fn state_data_types() -> Vec<Vec<&'static str>>
fn state_data_defaults() -> Vec<Vec<&'static str>>
fn events() -> Vec<&'static str>
fn event_sources() -> Vec<&'static str>
fn event_targets() -> Vec<&'static str>
fn event_actions() -> Vec<&'static str>
sourcefn dotfile() -> String where
Self: Sized,
fn dotfile() -> String where
Self: Sized,
Generate a DOT file for the state machine that hides default expressions for state fields and extended state fields, but shows event actions Read more
sourcefn dotfile_show_defaults() -> String where
Self: Sized,
fn dotfile_show_defaults() -> String where
Self: Sized,
Generate a DOT file for the state machine that shows default expressions for state fields and extended state fields Read more
sourcefn dotfile_pretty_defaults() -> String where
Self: Sized,
fn dotfile_pretty_defaults() -> String where
Self: Sized,
Generate a DOT file for the state machine that pretty prints the values of default expressions for state fields and extended state fields. Read more
sourcefn dotfile_hide_actions() -> String where
Self: Sized,
fn dotfile_hide_actions() -> String where
Self: Sized,
Do not show event actions
Auto Trait Implementations
impl RefUnwindSafe for Door
impl Send for Door
impl Sync for Door
impl Unpin for Door
impl UnwindSafe for Door
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more