[−][src]Struct infrared::protocols::rc5::Rc5Command
Fields
addr: u8
cmd: u8
start: u8
toggle: u8
Implementations
impl Rc5Command
[src]
pub const fn new(addr: u8, cmd: u8, toggle: bool) -> Self
[src]
pub const fn from_bits(bits: u16) -> Self
[src]
pub fn to_bits(&self) -> u16
[src]
Trait Implementations
impl Clone for Rc5Command
[src]
pub fn clone(&self) -> Rc5Command
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Command for Rc5Command
[src]
pub fn construct(addr: u32, cmd: u32) -> Option<Rc5Command>
[src]
pub fn address(&self) -> u32
[src]
pub fn data(&self) -> u32
[src]
pub fn protocol(&self) -> Protocol
[src]
pub fn pulses(&self, buf: &mut [u16]) -> usize
[src]
pub fn pulses_shift_scaled(&self, buf: &mut [u16], shift: usize) -> usize
[src]
impl Copy for Rc5Command
[src]
impl Debug for Rc5Command
[src]
impl Eq for Rc5Command
[src]
impl PartialEq<Rc5Command> for Rc5Command
[src]
pub fn eq(&self, other: &Rc5Command) -> bool
[src]
pub fn ne(&self, other: &Rc5Command) -> bool
[src]
impl StructuralEq for Rc5Command
[src]
impl StructuralPartialEq for Rc5Command
[src]
Auto Trait Implementations
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, 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>,