[−][src]Struct sm::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
impl Send for NoneEvent
impl Sync for NoneEvent
impl Unpin for NoneEvent
impl UnwindSafe for NoneEvent
impl RefUnwindSafe for NoneEvent
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,