pub enum Event {
Show 18 variants
Handshake {
version: i32,
extensions: Vec<String>,
},
ScreenDraw {
command: DrawCommand,
color: Color,
clip_region: Rect,
},
ScreenScroll {
location: ScrollLocation,
lines: i32,
background: Color,
clip_region: Rect,
},
ScreenClear {
color: Color,
clip_region: Rect,
},
ScreenDoubleBufferMode {
enable: bool,
},
ScreenRender,
VCodeSig(VCodeSig),
Ready,
Exited,
Serial(SerialData),
DeviceUpdate {
status: DeviceStatus,
port: Port,
},
Battery(Battery),
RobotPose {
x: f64,
y: f64,
},
RobotState(RobotState),
Log {
level: LogLevel,
message: String,
},
VEXLinkConnect {
port: SmartPort,
id: String,
mode: LinkMode,
override: bool,
},
VEXLinkDisconnect {
port: SmartPort,
},
TextMetricsRequest {
text: V5Text,
},
}
Expand description
A message sent from the simulator to the frontend.
Variants§
Handshake
ScreenDraw
Fields
§
command: DrawCommand
ScreenScroll
Fields
§
location: ScrollLocation
ScreenClear
ScreenDoubleBufferMode
ScreenRender
VCodeSig(VCodeSig)
Ready
Exited
Serial(SerialData)
DeviceUpdate
Battery(Battery)
RobotPose
RobotState(RobotState)
Log
VEXLinkConnect
VEXLinkDisconnect
TextMetricsRequest
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
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 Event
impl PartialOrd for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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