pub enum CompetitionState {
Initialize,
Autonomous,
Opcontrol,
Disabled,
}Expand description
State type for the Competition state machine.
Variants§
Initialize
Runs on initialization.
Autonomous
Runs during the autonomous period.
Opcontrol
Runs during the opcontrol period.
Disabled
Runs when the robot is disabled.
Trait Implementations§
Source§impl Clone for CompetitionState
impl Clone for CompetitionState
Source§fn clone(&self) -> CompetitionState
fn clone(&self) -> CompetitionState
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 moreAuto Trait Implementations§
impl Freeze for CompetitionState
impl RefUnwindSafe for CompetitionState
impl Send for CompetitionState
impl Sync for CompetitionState
impl Unpin for CompetitionState
impl UnwindSafe for CompetitionState
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