Struct stm32f407g_disc::led::Led[][src]

pub struct Led { /* fields omitted */ }

One of the on-board user LEDs

Implementations

impl Led[src]

pub fn off(&mut self)[src]

Turns the LED off

pub fn on(&mut self)[src]

Turns the LED on

pub fn toggle(&mut self)[src]

Toggles the LED

Trait Implementations

impl Into<Led> for LD3[src]

impl Into<Led> for LD4[src]

impl Into<Led> for LD5[src]

impl Into<Led> for LD6[src]

Auto Trait Implementations

impl Send for Led

impl Sync for Led

impl Unpin for Led

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.