#[repr(u8)]pub enum CecUserControlCode {
Show 85 variants
Select = 0,
Up = 1,
Down = 2,
Left = 3,
Right = 4,
RightUp = 5,
RightDown = 6,
LeftUp = 7,
LeftDown = 8,
RootMenu = 9,
SetupMenu = 10,
ContentsMenu = 11,
FavoriteMenu = 12,
Exit = 13,
TopMenu = 16,
DvdMenu = 17,
NumberEntryMode = 29,
Number11 = 30,
Number12 = 31,
Number0 = 32,
Number1 = 33,
Number2 = 34,
Number3 = 35,
Number4 = 36,
Number5 = 37,
Number6 = 38,
Number7 = 39,
Number8 = 40,
Number9 = 41,
Dot = 42,
Enter = 43,
Clear = 44,
NextFavorite = 47,
ChannelUp = 48,
ChannelDown = 49,
PreviousChannel = 50,
SoundSelect = 51,
InputSelect = 52,
DisplayInformation = 53,
Help = 54,
PageUp = 55,
PageDown = 56,
Power = 64,
VolumeUp = 65,
VolumeDown = 66,
Mute = 67,
Play = 68,
Stop = 69,
Pause = 70,
Record = 71,
Rewind = 72,
FastForward = 73,
Eject = 74,
Forward = 75,
Backward = 76,
StopRecord = 77,
PauseRecord = 78,
Angle = 80,
SubPicture = 81,
VideoOnDemand = 82,
ElectronicProgramGuide = 83,
TimerProgramming = 84,
InitialConfiguration = 85,
SelectBroadcastType = 86,
SelectSoundPresentation = 87,
PlayFunction = 96,
PausePlayFunction = 97,
RecordFunction = 98,
PauseRecordFunction = 99,
StopFunction = 100,
MuteFunction = 101,
RestoreVolumeFunction = 102,
TuneFunction = 103,
SelectMediaFunction = 104,
SelectAvInputFunction = 105,
SelectAudioInputFunction = 106,
PowerToggleFunction = 107,
PowerOffFunction = 108,
PowerOnFunction = 109,
F1Blue = 113,
F2Red = 114,
F3Green = 115,
F4Yellow = 116,
F5 = 117,
Data = 118,
}Expand description
parameter for CecOpcode::UserControlPressed
Variants§
Select = 0
Up = 1
Down = 2
Left = 3
Right = 4
RightUp = 5
RightDown = 6
LeftUp = 7
LeftDown = 8
RootMenu = 9
SetupMenu = 10
ContentsMenu = 11
FavoriteMenu = 12
Exit = 13
TopMenu = 16
DvdMenu = 17
NumberEntryMode = 29
Number11 = 30
Number12 = 31
Number0 = 32
Number1 = 33
Number2 = 34
Number3 = 35
Number4 = 36
Number5 = 37
Number6 = 38
Number7 = 39
Number8 = 40
Number9 = 41
Dot = 42
Enter = 43
Clear = 44
NextFavorite = 47
ChannelUp = 48
ChannelDown = 49
PreviousChannel = 50
SoundSelect = 51
InputSelect = 52
DisplayInformation = 53
Help = 54
PageUp = 55
PageDown = 56
Power = 64
VolumeUp = 65
VolumeDown = 66
Mute = 67
Play = 68
Stop = 69
Pause = 70
Record = 71
Rewind = 72
FastForward = 73
Eject = 74
Forward = 75
Backward = 76
StopRecord = 77
PauseRecord = 78
Angle = 80
SubPicture = 81
VideoOnDemand = 82
ElectronicProgramGuide = 83
TimerProgramming = 84
InitialConfiguration = 85
SelectBroadcastType = 86
SelectSoundPresentation = 87
PlayFunction = 96
Additional Operands: [Play Mode]
PausePlayFunction = 97
RecordFunction = 98
PauseRecordFunction = 99
StopFunction = 100
MuteFunction = 101
RestoreVolumeFunction = 102
TuneFunction = 103
Additional Operands: [Channel Identifier]
SelectMediaFunction = 104
Additional Operands: [UI Function Media]
SelectAvInputFunction = 105
Additional Operands: [UI Function Select A/V input]
SelectAudioInputFunction = 106
Additional Operands: [UI Function Select Audio input]
PowerToggleFunction = 107
PowerOffFunction = 108
PowerOnFunction = 109
F1Blue = 113
F2Red = 114
F3Green = 115
F4Yellow = 116
F5 = 117
Data = 118
Trait Implementations§
Source§impl Clone for CecUserControlCode
impl Clone for CecUserControlCode
Source§fn clone(&self) -> CecUserControlCode
fn clone(&self) -> CecUserControlCode
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 CecUserControlCode
impl Debug for CecUserControlCode
Source§impl From<CecUserControlCode> for u8
impl From<CecUserControlCode> for u8
Source§fn from(enum_value: CecUserControlCode) -> Self
fn from(enum_value: CecUserControlCode) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CecUserControlCode
impl PartialEq for CecUserControlCode
Source§impl TryFrom<u8> for CecUserControlCode
impl TryFrom<u8> for CecUserControlCode
Source§type Error = TryFromPrimitiveError<CecUserControlCode>
type Error = TryFromPrimitiveError<CecUserControlCode>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for CecUserControlCode
impl TryFromPrimitive for CecUserControlCode
const NAME: &'static str = "CecUserControlCode"
type Primitive = u8
type Error = TryFromPrimitiveError<CecUserControlCode>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for CecUserControlCode
impl Eq for CecUserControlCode
impl StructuralPartialEq for CecUserControlCode
Auto Trait Implementations§
impl Freeze for CecUserControlCode
impl RefUnwindSafe for CecUserControlCode
impl Send for CecUserControlCode
impl Sync for CecUserControlCode
impl Unpin for CecUserControlCode
impl UnwindSafe for CecUserControlCode
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