pub enum LightEngine {
Ready,
Warmup,
Cooldown,
EmergencyStop,
}Expand description
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.
Implementations§
Source§impl LightEngine
impl LightEngine
Sourcepub fn from_protocol(state: u8) -> Option<Self>
pub fn from_protocol(state: u8) -> Option<Self>
Create a LightEngine enum from the lower-level protocol representation.
Returns None if the given state byte is not known.
Sourcepub fn to_protocol(&self) -> u8
pub fn to_protocol(&self) -> u8
Convert the LightEngine enum to its lower-level protocol representation.
Trait Implementations§
Source§impl Clone for LightEngine
impl Clone for LightEngine
Source§fn clone(&self) -> LightEngine
fn clone(&self) -> LightEngine
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LightEngine
impl Debug for LightEngine
Source§impl Hash for LightEngine
impl Hash for LightEngine
Source§impl PartialEq for LightEngine
impl PartialEq for LightEngine
impl Copy for LightEngine
impl Eq for LightEngine
impl StructuralPartialEq for LightEngine
Auto Trait Implementations§
impl Freeze for LightEngine
impl RefUnwindSafe for LightEngine
impl Send for LightEngine
impl Sync for LightEngine
impl Unpin for LightEngine
impl UnwindSafe for LightEngine
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more