pub enum QueryCommand {
DefaultValue,
CurrentValue,
RangeValue,
}Expand description
Represents special characters used to modify other serial commands to query command values.
Variants§
DefaultValue
Gets the default value for the command.
CurrentValue
Gets the current value for the command.
RangeValue
Gets the range of acceptable values for the command.
Implementations§
Source§impl QueryCommand
impl QueryCommand
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new QueryCommand.
Sourcepub const fn command(&self) -> &str
pub const fn command(&self) -> &str
Gets the ASCII-encoded serial command for the QueryCommand.
Trait Implementations§
Source§impl Clone for QueryCommand
impl Clone for QueryCommand
Source§fn clone(&self) -> QueryCommand
fn clone(&self) -> QueryCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for QueryCommand
Source§impl Debug for QueryCommand
impl Debug for QueryCommand
Source§impl Default for QueryCommand
impl Default for QueryCommand
impl Eq for QueryCommand
Source§impl PartialEq for QueryCommand
impl PartialEq for QueryCommand
Source§fn eq(&self, other: &QueryCommand) -> bool
fn eq(&self, other: &QueryCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for QueryCommand
Auto Trait Implementations§
impl Freeze for QueryCommand
impl RefUnwindSafe for QueryCommand
impl Send for QueryCommand
impl Sync for QueryCommand
impl Unpin for QueryCommand
impl UnsafeUnpin for QueryCommand
impl UnwindSafe for QueryCommand
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