pub enum ServoCommand {
BindToAutomaton {
servo_id: String,
automaton_id: String,
},
BindToParameter {
servo_id: String,
port: PortId,
parameter: ParameterId,
},
Unbind {
servo_id: String,
},
SetRange {
servo_id: String,
min: f32,
max: f32,
},
SetMapping {
servo_id: String,
mapping: MappingType,
},
SetEnabled {
servo_id: String,
enabled: bool,
},
}Variants§
Implementations§
Trait Implementations§
Source§impl Clone for ServoCommand
impl Clone for ServoCommand
Source§fn clone(&self) -> ServoCommand
fn clone(&self) -> ServoCommand
Returns a duplicate 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 ServoCommand
impl Debug for ServoCommand
Source§impl Display for ServoCommand
impl Display for ServoCommand
Source§impl From<ServoCommand> for CommandEnum
impl From<ServoCommand> for CommandEnum
Source§fn from(cmd: ServoCommand) -> Self
fn from(cmd: ServoCommand) -> Self
Converts to this type from the input type.
Source§impl TryFrom<CommandEnum> for ServoCommand
impl TryFrom<CommandEnum> for ServoCommand
impl Command for ServoCommand
Auto Trait Implementations§
impl Freeze for ServoCommand
impl RefUnwindSafe for ServoCommand
impl Send for ServoCommand
impl Sync for ServoCommand
impl Unpin for ServoCommand
impl UnsafeUnpin for ServoCommand
impl UnwindSafe for ServoCommand
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