pub enum Command {
Show 13 variants
Handshake {
version: i32,
extensions: Vec<String>,
},
Touch {
pos: Point2<i32>,
event: TouchEvent,
},
ControllerUpdate(Option<ControllerUpdate>, Option<ControllerUpdate>),
USD {
root: Option<PathBuf>,
},
VEXLinkOpened {
port: SmartPort,
mode: LinkMode,
},
VEXLinkClosed {
port: SmartPort,
},
CompetitionMode(CompetitionMode),
ConfigureDevice {
port: Port,
device: Device,
},
AdiInput {
port: AdiPort,
voltage: f64,
},
StartExecution,
SetBatteryCapacity {
capacity: f64,
},
SetTextMetrics {
text: V5Text,
metrics: TextMetrics,
},
Serial(SerialData),
}
Expand description
A message sent from the frontend to the simulator.
Variants§
Handshake
Touch
ControllerUpdate(Option<ControllerUpdate>, Option<ControllerUpdate>)
USD
VEXLinkOpened
VEXLinkClosed
CompetitionMode(CompetitionMode)
ConfigureDevice
AdiInput
StartExecution
SetBatteryCapacity
SetTextMetrics
Serial(SerialData)
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 PartialOrd for Command
impl PartialOrd for Command
impl 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