[−][src]Enum pi_ir_remote::Pulse
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
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]
pub fn eq(&self, other: &Pulse) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,