[][src]Struct pns::FireState

pub struct FireState<'net, 'state> {
    pub transitions: Box<[u32]>,
    // some fields omitted
}

A temporary object for selecting a transition to fire.

Fields

transitions: Box<[u32]>

A slice of indices of the current available transitions.

Implementations

impl<'net, 'state> FireState<'net, 'state>[src]

pub fn finish(self, id: u32)[src]

Finish the fire by specifying the index of the transition index inside the slice of available indices. Not using the index of the transition directly may seem weird, but this way it's easy and efficient to ensure, no invalid transition will be called. And nomrally you know the index anyway and you save the work to get the index manually. As a result you get back your original state.

Auto Trait Implementations

impl<'net, 'state> RefUnwindSafe for FireState<'net, 'state>

impl<'net, 'state> !Send for FireState<'net, 'state>

impl<'net, 'state> !Sync for FireState<'net, 'state>

impl<'net, 'state> Unpin for FireState<'net, 'state> where
    'net: 'state, 

impl<'net, 'state> !UnwindSafe for FireState<'net, 'state>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.