[][src]Struct servos::servo::Servo

pub struct Servo {
    pub min_us: u16,
    pub max_us: u16,
    pub neutral_us: u16,
    pub enable: bool,
    pub duty_cycle: u16,
    // some fields omitted
}

Fields

min_us: u16max_us: u16neutral_us: u16enable: boolduty_cycle: u16

Implementations

impl Servo[src]

pub fn new(n_channel: u8) -> Self[src]

pub fn write(&mut self, value: u8) -> bool[src]

pub fn write_pwm(&mut self, value: u64) -> bool[src]

Auto Trait Implementations

impl RefUnwindSafe for Servo

impl Send for Servo

impl Sync for Servo

impl Unpin for Servo

impl UnwindSafe for Servo

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, 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.