[−][src]Struct ev3dev_lang_rust::led::Led
Methods
impl Led
[src]
pub fn new() -> Option<Led>
[src]
pub fn get_left_red(&mut self) -> AttributeResult<u8>
[src]
pub fn set_left_red(&mut self, brightness: u8) -> AttributeResult<()>
[src]
pub fn get_left_green(&mut self) -> AttributeResult<u8>
[src]
pub fn set_left_green(&mut self, brightness: u8) -> AttributeResult<()>
[src]
pub fn get_right_red(&mut self) -> AttributeResult<u8>
[src]
pub fn set_right_red(&mut self, brightness: u8) -> AttributeResult<()>
[src]
pub fn get_right_green(&mut self) -> AttributeResult<u8>
[src]
pub fn set_right_green(&mut self, brightness: u8) -> AttributeResult<()>
[src]
pub fn get_left_color(&mut self) -> AttributeResult<(u8, u8)>
[src]
pub fn set_left_color(&mut self, color: (u8, u8)) -> AttributeResult<()>
[src]
pub fn get_right_color(&mut self) -> AttributeResult<(u8, u8)>
[src]
pub fn set_right_color(&mut self, color: (u8, u8)) -> AttributeResult<()>
[src]
pub fn get_color(&mut self) -> AttributeResult<Option<(u8, u8)>>
[src]
Returns None if left and right colors are different.
pub fn set_color(&mut self, color: (u8, u8)) -> AttributeResult<()>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,