pub struct Command<T> {
pub command: CommandName,
pub data: T,
}
Expand description
The generic Command structure defined by the Arduino serial plotter README.
Fields§
§command: CommandName
§data: T
Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for Command<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Command<T>where
T: Deserialize<'de>,
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 From<ClientCommand> for Command<Value>
impl From<ClientCommand> for Command<Value>
Source§fn from(value: ClientCommand) -> Self
fn from(value: ClientCommand) -> Self
Converts to this type from the input type.
Source§impl From<MiddlewareCommand> for Command<MonitorSettings>
impl From<MiddlewareCommand> for Command<MonitorSettings>
Source§fn from(value: MiddlewareCommand) -> Self
fn from(value: MiddlewareCommand) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for Command<T>where
T: Freeze,
impl<T> RefUnwindSafe for Command<T>where
T: RefUnwindSafe,
impl<T> Send for Command<T>where
T: Send,
impl<T> Sync for Command<T>where
T: Sync,
impl<T> Unpin for Command<T>where
T: Unpin,
impl<T> UnwindSafe for Command<T>where
T: UnwindSafe,
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