pub struct MonitorModelState {
pub autoscroll: Option<bool>,
pub timestamp: Option<bool>,
pub line_ending: Option<EndOfLine>,
pub interpolate: Option<bool>,
pub dark_theme: Option<bool>,
pub ws_port: Option<u16>,
pub serial_port: Option<String>,
pub connected: Option<bool>,
pub generate: bool,
}
Expand description
All the UI Monitor settings that can be changed in the Arduino serial plotter application.
Fields§
§autoscroll: Option<bool>
Used by the serial monitors to stick at the bottom of the window.
timestamp: Option<bool>
Enable timestamp next to the actual data used by the serial monitors.
line_ending: Option<EndOfLine>
Clients store the information about the last EOL used when sending a message to the board.
interpolate: Option<bool>
Enables interpolation of the chart in the Serial Plotter App.
dark_theme: Option<bool>
§ws_port: Option<u16>
the current websocket port where the communication happens.
serial_port: Option<String>
The port at which the pluggable monitor in the middleware is connected to,
e.g. /dev/ttyACM0
(linux), /dev/ttyUSB0
(linux), etc.
connected: Option<bool>
The connection status of the pluggable monitor to the actual board.
generate: bool
Enable mocked data generation.
Trait Implementations§
Source§impl Clone for MonitorModelState
impl Clone for MonitorModelState
Source§fn clone(&self) -> MonitorModelState
fn clone(&self) -> MonitorModelState
Returns a copy 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 moreSource§impl Debug for MonitorModelState
impl Debug for MonitorModelState
Source§impl Default for MonitorModelState
impl Default for MonitorModelState
Source§fn default() -> MonitorModelState
fn default() -> MonitorModelState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MonitorModelState
impl<'de> Deserialize<'de> for MonitorModelState
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
Auto Trait Implementations§
impl Freeze for MonitorModelState
impl RefUnwindSafe for MonitorModelState
impl Send for MonitorModelState
impl Sync for MonitorModelState
impl Unpin for MonitorModelState
impl UnwindSafe for MonitorModelState
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