[−][src]Trait ev3dev_lang_rust::Device
The ev3dev device base trait
Required methods
pub fn get_attribute(&self, name: &str) -> Attribute[src]
Returns the attribute wrapper for an attribute name.
Provided methods
pub fn get_address(&self) -> Ev3Result<String>[src]
Returns the name of the port that the motor is connected to.
pub fn set_command(&self, command: &str) -> Ev3Result<()>[src]
Sends a command to the device controller.
pub fn get_commands(&self) -> Ev3Result<Vec<String>>[src]
Returns a space separated list of commands that are supported by the device controller.
pub fn get_driver_name(&self) -> Ev3Result<String>[src]
Returns the name of the driver that provides this device.