#[non_exhaustive]#[repr(u8)]pub enum PrimaryDeviceType {
Tv = 0,
Recording = 1,
Tuner = 3,
Playback = 4,
Audio = 5,
Switch = 6,
Processor = 7,
}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.
Trait Implementations§
Source§impl Clone for PrimaryDeviceType
impl Clone for PrimaryDeviceType
Source§fn clone(&self) -> PrimaryDeviceType
fn clone(&self) -> PrimaryDeviceType
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 PrimaryDeviceType
impl Debug for PrimaryDeviceType
Source§impl From<PrimaryDeviceType> for u8
impl From<PrimaryDeviceType> for u8
Source§fn from(enum_value: PrimaryDeviceType) -> Self
fn from(enum_value: PrimaryDeviceType) -> Self
Converts to this type from the input type.
Source§impl Hash for PrimaryDeviceType
impl Hash for PrimaryDeviceType
Source§impl OperandEncodable for PrimaryDeviceType
impl OperandEncodable for PrimaryDeviceType
Source§impl PartialEq for PrimaryDeviceType
impl PartialEq for PrimaryDeviceType
Source§impl TryFrom<u8> for PrimaryDeviceType
impl TryFrom<u8> for PrimaryDeviceType
Source§type Error = TryFromPrimitiveError<PrimaryDeviceType>
type Error = TryFromPrimitiveError<PrimaryDeviceType>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for PrimaryDeviceType
impl TryFromPrimitive for PrimaryDeviceType
const NAME: &'static str = "PrimaryDeviceType"
type Primitive = u8
type Error = TryFromPrimitiveError<PrimaryDeviceType>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for PrimaryDeviceType
impl Eq for PrimaryDeviceType
impl StructuralPartialEq for PrimaryDeviceType
Auto Trait Implementations§
impl Freeze for PrimaryDeviceType
impl RefUnwindSafe for PrimaryDeviceType
impl Send for PrimaryDeviceType
impl Sync for PrimaryDeviceType
impl Unpin for PrimaryDeviceType
impl UnsafeUnpin for PrimaryDeviceType
impl UnwindSafe for PrimaryDeviceType
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