#[non_exhaustive]pub enum RobotPhase {
Running,
ShuttingDown,
Shutdown,
Faulted,
}Expand description
Controller lifecycle, independent of whether electrical stopping succeeded.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Running
Accepting commands; this is not a hardware self-test.
ShuttingDown
Admission is closed and adjustment/cleanup is still finishing.
Shutdown
Normal shutdown completed without a reported stop failure.
Faulted
A latched task/output/cleanup failure; recovery needs a new robot.
Trait Implementations§
Source§impl Clone for RobotPhase
impl Clone for RobotPhase
impl Copy for RobotPhase
Source§impl Debug for RobotPhase
impl Debug for RobotPhase
impl Eq for RobotPhase
Source§impl PartialEq for RobotPhase
impl PartialEq for RobotPhase
impl StructuralPartialEq for RobotPhase
Auto Trait Implementations§
impl Forget for RobotPhase
impl Freeze for RobotPhase
impl Move for RobotPhase
impl RefUnwindSafe for RobotPhase
impl Send for RobotPhase
impl Sync for RobotPhase
impl Unpin for RobotPhase
impl UnsafeUnpin for RobotPhase
impl UnwindSafe for RobotPhase
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