[][src]Struct sm::NoneEvent

pub struct NoneEvent;

NoneEvent is a semi-private event struct that is used to allow the Initializer trait implementations to provide a simple API to initialise a new machine.

Using this struct, the following works:

β“˜This example is not tested
let sm = TurnStile::new(Locked); // => TurnStile<Locked, None>

Otherwise, we'd need to provide type annotations (using any available events) for every machine invocation:

β“˜This example is not tested
let sm: TurnStile<Locked, Push> = TurnStile::new(Locked); // => TurnStile<Locked, None>

In practice, you will never deal with this struct, as it's used as a concrete type that is swapped for the None option at compile time.

Trait Implementations

impl Event for NoneEvent[src]

impl Clone for NoneEvent[src]

impl Copy for NoneEvent[src]

impl Eq for NoneEvent[src]

impl PartialEq<NoneEvent> for NoneEvent[src]

impl Debug for NoneEvent[src]

impl StructuralPartialEq for NoneEvent[src]

impl StructuralEq for NoneEvent[src]

Auto Trait Implementations

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

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

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

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