[][src]Enum pi_ir_remote::Pulse

pub enum Pulse {
    Short,
    Long,
    Start,
    Unrecognized,
}

The different types of pulses. These refer only to the "on" pulse, the "off" pulses are always the same duration. The main pulse types are "Short" and "Long" (around 500µs and 1500µs), which are used to transmit binary encoded button IDs.

There are also other pulse lengths, typically orders of magnitude larger, that encode things like the start of a transmition or a button being held down.

Variants

Short
Long
Start
Unrecognized

Implementations

impl Pulse[src]

pub fn from_duration(dur: Duration) -> Pulse[src]

Returns the appropriate pulse type for a pulse with a given duration.

Trait Implementations

impl Clone for Pulse[src]

impl Copy for Pulse[src]

impl Debug for Pulse[src]

impl PartialEq<Pulse> for Pulse[src]

impl StructuralPartialEq for Pulse[src]

Auto Trait Implementations

impl RefUnwindSafe for Pulse

impl Send for Pulse

impl Sync for Pulse

impl Unpin for Pulse

impl UnwindSafe for Pulse

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.