#[repr(u8)]pub enum LogicalAddress {
Show 16 variants
Tv = 0,
RecordingDevice1 = 1,
RecordingDevice2 = 2,
Tuner1 = 3,
PlaybackDevice1 = 4,
AudioSystem = 5,
Tuner2 = 6,
Tuner3 = 7,
PlaybackDevice2 = 8,
RecordingDevice3 = 9,
Tuner4 = 10,
PlaybackDevice3 = 11,
Backup1 = 12,
Backup2 = 13,
Specific = 14,
UnregisteredOrBroadcast = 15,
}Expand description
A CEC logical address, used for identifying devices attached to the CEC bus.
Variants§
Tv = 0
RecordingDevice1 = 1
RecordingDevice2 = 2
Tuner1 = 3
PlaybackDevice1 = 4
AudioSystem = 5
Tuner2 = 6
Tuner3 = 7
PlaybackDevice2 = 8
RecordingDevice3 = 9
Tuner4 = 10
PlaybackDevice3 = 11
Backup1 = 12
Backup2 = 13
Specific = 14
UnregisteredOrBroadcast = 15
Implementations§
Source§impl LogicalAddress
impl LogicalAddress
Sourcepub const Unregistered: LogicalAddress = LogicalAddress::UnregisteredOrBroadcast
pub const Unregistered: LogicalAddress = LogicalAddress::UnregisteredOrBroadcast
When used as initiator address
Sourcepub const Broadcast: LogicalAddress = LogicalAddress::UnregisteredOrBroadcast
pub const Broadcast: LogicalAddress = LogicalAddress::UnregisteredOrBroadcast
When used as destination address
pub fn primary_device_type(self) -> Option<PrimaryDeviceType>
pub fn all_device_types(self) -> AllDeviceTypes
pub fn ty(self) -> Option<LogicalAddressType>
Trait Implementations§
Source§impl Clone for LogicalAddress
impl Clone for LogicalAddress
Source§fn clone(&self) -> LogicalAddress
fn clone(&self) -> LogicalAddress
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LogicalAddress
impl Debug for LogicalAddress
Source§impl Default for LogicalAddress
impl Default for LogicalAddress
Source§fn default() -> LogicalAddress
fn default() -> LogicalAddress
Returns the “default value” for a type. Read more
Source§impl Display for LogicalAddress
impl Display for LogicalAddress
Source§impl From<LogicalAddress> for u8
impl From<LogicalAddress> for u8
Source§fn from(enum_value: LogicalAddress) -> Self
fn from(enum_value: LogicalAddress) -> Self
Converts to this type from the input type.
Source§impl FromStr for LogicalAddress
impl FromStr for LogicalAddress
Source§impl Hash for LogicalAddress
impl Hash for LogicalAddress
Source§impl PartialEq for LogicalAddress
impl PartialEq for LogicalAddress
Source§impl TryFrom<&str> for LogicalAddress
impl TryFrom<&str> for LogicalAddress
Source§impl TryFrom<u8> for LogicalAddress
impl TryFrom<u8> for LogicalAddress
Source§type Error = TryFromPrimitiveError<LogicalAddress>
type Error = TryFromPrimitiveError<LogicalAddress>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for LogicalAddress
impl TryFromPrimitive for LogicalAddress
const NAME: &'static str = "LogicalAddress"
type Primitive = u8
type Error = TryFromPrimitiveError<LogicalAddress>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for LogicalAddress
impl StructuralPartialEq for LogicalAddress
Auto Trait Implementations§
impl Freeze for LogicalAddress
impl RefUnwindSafe for LogicalAddress
impl Send for LogicalAddress
impl Sync for LogicalAddress
impl Unpin for LogicalAddress
impl UnsafeUnpin for LogicalAddress
impl UnwindSafe for LogicalAddress
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