#[non_exhaustive]#[repr(u8)]pub enum InfoSubRegister {
DevicePairingInformation = 80,
DeviceCodename = 96,
}Expand description
All known sub-registers of the Register::ReceiverInfo register.
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.
DevicePairingInformation = 80
Provides information about a specific paired device. The device index (4 bits) has to be added to the register address.
Exposed by Receiver::get_device_pairing_information.
DeviceCodename = 96
Provides the name of a paired device. The device index (4 bits) has to be added to the register address.
Exposed by Receiver::get_device_codename.
Trait Implementations§
Source§impl Clone for InfoSubRegister
impl Clone for InfoSubRegister
Source§fn clone(&self) -> InfoSubRegister
fn clone(&self) -> InfoSubRegister
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for InfoSubRegister
Source§impl Debug for InfoSubRegister
impl Debug for InfoSubRegister
impl Eq for InfoSubRegister
Source§impl From<InfoSubRegister> for u8
impl From<InfoSubRegister> for u8
Source§fn from(enum_value: InfoSubRegister) -> Self
fn from(enum_value: InfoSubRegister) -> Self
Converts to this type from the input type.
Source§impl Hash for InfoSubRegister
impl Hash for InfoSubRegister
Source§impl PartialEq for InfoSubRegister
impl PartialEq for InfoSubRegister
Source§fn eq(&self, other: &InfoSubRegister) -> bool
fn eq(&self, other: &InfoSubRegister) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InfoSubRegister
Source§impl TryFrom<u8> for InfoSubRegister
impl TryFrom<u8> for InfoSubRegister
Source§type Error = TryFromPrimitiveError<InfoSubRegister>
type Error = TryFromPrimitiveError<InfoSubRegister>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for InfoSubRegister
impl TryFromPrimitive for InfoSubRegister
const NAME: &'static str = "InfoSubRegister"
type Primitive = u8
type Error = TryFromPrimitiveError<InfoSubRegister>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for InfoSubRegister
impl RefUnwindSafe for InfoSubRegister
impl Send for InfoSubRegister
impl Sync for InfoSubRegister
impl Unpin for InfoSubRegister
impl UnsafeUnpin for InfoSubRegister
impl UnwindSafe for InfoSubRegister
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