[−][src]Struct pns::FireState
A temporary object for selecting a transition to fire.
Fields
transitions: Box<[u32]>
A slice of indices of the current available transitions.
Methods
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,
'net: 'state,
impl<'net, 'state> !UnwindSafe for FireState<'net, 'state>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,