Enum cec_linux::CecPrimDevType
source · #[repr(u8)]pub enum CecPrimDevType {
TV = 0,
RECORD = 1,
TUNER = 3,
PLAYBACK = 4,
AUDIOSYSTEM = 5,
SWITCH = 6,
PROCESSOR = 7,
}
Expand description
Primary Device Type Operand (prim_devtype)
Variants§
Trait Implementations§
source§impl Clone for CecPrimDevType
impl Clone for CecPrimDevType
source§fn clone(&self) -> CecPrimDevType
fn clone(&self) -> CecPrimDevType
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 CecPrimDevType
impl Debug for CecPrimDevType
source§impl From<CecPrimDevType> for u8
impl From<CecPrimDevType> for u8
source§fn from(enum_value: CecPrimDevType) -> Self
fn from(enum_value: CecPrimDevType) -> Self
Converts to this type from the input type.
source§impl PartialEq for CecPrimDevType
impl PartialEq for CecPrimDevType
source§fn eq(&self, other: &CecPrimDevType) -> bool
fn eq(&self, other: &CecPrimDevType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<u8> for CecPrimDevType
impl TryFrom<u8> for CecPrimDevType
§type Error = TryFromPrimitiveError<CecPrimDevType>
type Error = TryFromPrimitiveError<CecPrimDevType>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for CecPrimDevType
impl TryFromPrimitive for CecPrimDevType
type Primitive = u8
type Error = TryFromPrimitiveError<CecPrimDevType>
const NAME: &'static str = "CecPrimDevType"
fn try_from_primitive( number: Self::Primitive ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for CecPrimDevType
impl Eq for CecPrimDevType
impl StructuralPartialEq for CecPrimDevType
Auto Trait Implementations§
impl RefUnwindSafe for CecPrimDevType
impl Send for CecPrimDevType
impl Sync for CecPrimDevType
impl Unpin for CecPrimDevType
impl UnwindSafe for CecPrimDevType
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