Enum cec_linux::CecLogicalAddress
source · #[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 copy 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§fn eq(&self, other: &CecLogicalAddress) -> bool
fn eq(&self, other: &CecLogicalAddress) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<u8> for CecLogicalAddress
impl TryFrom<u8> for CecLogicalAddress
§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
type Primitive = u8
type Error = TryFromPrimitiveError<CecLogicalAddress>
const NAME: &'static str = "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 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