pub enum Command {
Handshake {
version: i32,
extensions: Vec<String>,
},
Touch {
pos: Point,
event: TouchEvent,
},
ControllerUpdate(ControllerUpdate),
USD {
root: Option<PathBuf>,
},
VEXLinkOpened {
port: SmartPort,
mode: LinkMode,
},
VEXLinkClosed {
port: SmartPort,
},
CompetitionMode {
connected: bool,
mode: CompMode,
is_competition: bool,
},
ConfigureDevice {
port: Port,
device: Device,
},
AdiInput {
port: AdiPort,
voltage: f64,
},
StartExecution,
SetBatteryCapacity {
capacity: f64,
},
}Expand description
A message sent from the frontend to the simulator.
Variants§
Handshake
Touch
ControllerUpdate(ControllerUpdate)
USD
VEXLinkOpened
VEXLinkClosed
CompetitionMode
ConfigureDevice
AdiInput
StartExecution
SetBatteryCapacity
Trait Implementations§
source§impl<'de> Deserialize<'de> for Command
impl<'de> Deserialize<'de> for Command
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Command
impl PartialEq for Command
source§impl PartialOrd for Command
impl PartialOrd for Command
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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