pub enum AutomatonResult<Id, E> {
EmptyIter(Id),
CouldNotFindNextState(Id),
Error(E),
}
Expand description
Provides information on why automaton has stopped executing.
Variants§
EmptyIter(Id)
Automaton execution ended because no more keys could be extracted. Contains identifier of current state in automaton execution - no more keys could be extracted after reaching this state.
CouldNotFindNextState(Id)
No connection could be matched for a key. Contains identifier of current state in automaton execution - no connections could be found on this state for given key.
Error(E)
An error occured while executing function assigned to connection. Contains error generated while changing state.
Implementations§
Source§impl<Id, E> AutomatonResult<Id, E>
impl<Id, E> AutomatonResult<Id, E>
pub fn is_empty_iter(&self) -> bool
pub fn is_could_not_find_next_state(&self) -> bool
pub fn is_error(&self) -> bool
Auto Trait Implementations§
impl<Id, E> Freeze for AutomatonResult<Id, E>
impl<Id, E> RefUnwindSafe for AutomatonResult<Id, E>where
Id: RefUnwindSafe,
E: RefUnwindSafe,
impl<Id, E> Send for AutomatonResult<Id, E>
impl<Id, E> Sync for AutomatonResult<Id, E>
impl<Id, E> Unpin for AutomatonResult<Id, E>
impl<Id, E> UnwindSafe for AutomatonResult<Id, E>where
Id: UnwindSafe,
E: UnwindSafe,
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