[][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 Debug for NoneEvent
[src]

Formats the value using the given formatter. Read more

impl PartialEq<NoneEvent> for NoneEvent
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for NoneEvent
[src]

impl Copy for NoneEvent
[src]

impl Clone for NoneEvent
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for NoneEvent

impl Sync for NoneEvent

Blanket Implementations

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> From for T
[src]

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

Performs the conversion.

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

Immutably borrows from an owned value. Read more

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

Mutably borrows from an owned value. Read more

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

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more