#[repr(u8)]pub enum CecLogicalAddress {
Show 16 variants
Tv = 0,
Record1 = 1,
Record2 = 2,
Tuner1 = 3,
Playback1 = 4,
Audiosystem = 5,
Tuner2 = 6,
Tuner3 = 7,
Playback2 = 8,
Record3 = 9,
Tuner4 = 10,
Playback3 = 11,
Backup1 = 12,
Backup2 = 13,
Specific = 14,
UnregisteredBroadcast = 15,
}Expand description
The logical addresses defined by CEC 2.0
Switches should use UNREGISTERED. Processors should use SPECIFIC.
Variants§
Tv = 0
Record1 = 1
Record2 = 2
Tuner1 = 3
Playback1 = 4
Audiosystem = 5
Tuner2 = 6
Tuner3 = 7
Playback2 = 8
Record3 = 9
Tuner4 = 10
Playback3 = 11
Backup1 = 12
Backup2 = 13
Specific = 14
UnregisteredBroadcast = 15
as initiator address
Trait Implementations§
Source§impl Clone for CecLogicalAddress
impl Clone for CecLogicalAddress
Source§fn clone(&self) -> CecLogicalAddress
fn clone(&self) -> CecLogicalAddress
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 CecLogicalAddress
impl Debug for CecLogicalAddress
Source§impl From<CecLogicalAddress> for u8
impl From<CecLogicalAddress> for u8
Source§fn from(enum_value: CecLogicalAddress) -> Self
fn from(enum_value: CecLogicalAddress) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CecLogicalAddress
impl PartialEq for CecLogicalAddress
Source§impl TryFrom<u8> for CecLogicalAddress
impl TryFrom<u8> for CecLogicalAddress
Source§type Error = TryFromPrimitiveError<CecLogicalAddress>
type Error = TryFromPrimitiveError<CecLogicalAddress>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for CecLogicalAddress
impl TryFromPrimitive for CecLogicalAddress
const NAME: &'static str = "CecLogicalAddress"
type Primitive = u8
type Error = TryFromPrimitiveError<CecLogicalAddress>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for CecLogicalAddress
impl Eq for CecLogicalAddress
impl StructuralPartialEq for CecLogicalAddress
Auto Trait Implementations§
impl Freeze for CecLogicalAddress
impl RefUnwindSafe for CecLogicalAddress
impl Send for CecLogicalAddress
impl Sync for CecLogicalAddress
impl Unpin for CecLogicalAddress
impl UnwindSafe for CecLogicalAddress
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