Enum AutomatonResult

Source
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>

Source

pub fn is_empty_iter(&self) -> bool

Source

pub fn is_could_not_find_next_state(&self) -> bool

Source

pub fn is_error(&self) -> bool

Auto Trait Implementations§

§

impl<Id, E> Freeze for AutomatonResult<Id, E>
where Id: Freeze, E: Freeze,

§

impl<Id, E> RefUnwindSafe for AutomatonResult<Id, E>

§

impl<Id, E> Send for AutomatonResult<Id, E>
where Id: Send, E: Send,

§

impl<Id, E> Sync for AutomatonResult<Id, E>
where Id: Sync, E: Sync,

§

impl<Id, E> Unpin for AutomatonResult<Id, E>
where Id: Unpin, E: Unpin,

§

impl<Id, E> UnwindSafe for AutomatonResult<Id, E>
where Id: UnwindSafe, E: UnwindSafe,

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