[][src]Enum ether_dream::dac::LightEngine

pub enum LightEngine {
    Ready,
    Warmup,
    Cooldown,
    EmergencyStop,
}

The light engine state machine - the first of the three primary state machines described within the protocol.

Variants

Ready
Warmup

In the case where the DAC is also used for thermal control of laser apparatus, this is the state that is entered after power-up.

Cooldown

Lasers are off but thermal control is still active.

EmergencyStop

An emergency stop has been triggered, either by an E-stop input on the DAC, an E-stop command over the network, or a fault such as over-temperature.

Methods

impl LightEngine[src]

pub fn from_protocol(state: u8) -> Option<Self>[src]

Create a LightEngine enum from the lower-level protocol representation.

Returns None if the given state byte is not known.

pub fn to_protocol(&self) -> u8[src]

Convert the LightEngine enum to its lower-level protocol representation.

Trait Implementations

impl Clone for LightEngine[src]

impl Copy for LightEngine[src]

impl Debug for LightEngine[src]

impl Eq for LightEngine[src]

impl Hash for LightEngine[src]

impl PartialEq<LightEngine> for LightEngine[src]

impl StructuralEq for LightEngine[src]

impl StructuralPartialEq for LightEngine[src]

Auto Trait Implementations

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> 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.