#[non_exhaustive]#[repr(u8)]pub enum ProtocolId {
Nec = 1,
Nec16 = 2,
NecSamsung = 3,
NecApple = 4,
Rc5 = 5,
Rc6 = 6,
Sbp = 7,
Denon = 8,
Unknown = 255,
}
Expand description
Protocol id
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Nec = 1
Standard Nec
Nec16 = 2
Nec with 16 bit addresses
NecSamsung = 3
Nec (Samsung variant)
NecApple = 4
Nec (Apple variant)
Rc5 = 5
Philips Rc5
Rc6 = 6
Philips Rc6
Sbp = 7
Samsung Blu-ray player protocol
Denon = 8
Denon
Unknown = 255
Placeholder
Trait Implementations§
Source§impl Clone for ProtocolId
impl Clone for ProtocolId
Source§fn clone(&self) -> ProtocolId
fn clone(&self) -> ProtocolId
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ProtocolId
impl Debug for ProtocolId
Source§impl From<u8> for ProtocolId
impl From<u8> for ProtocolId
Source§impl PartialEq for ProtocolId
impl PartialEq for ProtocolId
impl Copy for ProtocolId
impl Eq for ProtocolId
impl StructuralPartialEq for ProtocolId
Auto Trait Implementations§
impl Freeze for ProtocolId
impl RefUnwindSafe for ProtocolId
impl Send for ProtocolId
impl Sync for ProtocolId
impl Unpin for ProtocolId
impl UnwindSafe for ProtocolId
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more