Trait ev3dev_lang_rust::core::Device [−][src]
pub trait Device {
fn get_attribute(&mut self, name: &str) -> &Attribute;
fn get_address(&mut self) -> AttributeResult<String> { ... }
fn set_command(&mut self, command: String) -> AttributeResult<()> { ... }
fn get_commands(&mut self) -> AttributeResult<Vec<String>> { ... }
fn get_driver_name(&mut self) -> AttributeResult<String> { ... }
}Required Methods
fn get_attribute(&mut self, name: &str) -> &Attribute
Provided Methods
fn get_address(&mut self) -> AttributeResult<String>
fn set_command(&mut self, command: String) -> AttributeResult<()>
fn get_commands(&mut self) -> AttributeResult<Vec<String>>
fn get_driver_name(&mut self) -> AttributeResult<String>
Implementors
impl Device for LargeMotorimpl Device for MediumMotorimpl Device for ev3dev_lang_rust::color_sensor::ColorSensorimpl Device for ev3dev_lang_rust::gyro_sensor::ColorSensor