Enum AvcPanelCommand
#[repr(u8)]pub enum AvcPanelCommand {
Show 59 variants
Select = 0,
Up = 1,
Down = 2,
Left = 3,
Right = 4,
RootMenu = 9,
ContentsMenu = 11,
FavoriteMenu = 12,
Exit = 13,
OnDemandMenu = 14,
AppsMenu = 15,
Key0 = 32,
Key1 = 33,
Key2 = 34,
Key3 = 35,
Key4 = 36,
Key5 = 37,
Key6 = 38,
Key7 = 39,
Key8 = 40,
Key9 = 41,
Dot = 42,
Enter = 43,
ChannelUp = 48,
ChannelDown = 49,
ChannelPrevious = 50,
InputSelect = 52,
Info = 53,
Help = 54,
PageUp = 55,
PageDown = 56,
Lock = 58,
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,
List = 77,
F1 = 113,
F2 = 114,
F3 = 115,
F4 = 116,
F5 = 117,
F6 = 118,
F7 = 119,
F8 = 120,
F9 = 121,
Red = 122,
Green = 123,
Blue = 124,
Yellow = 125,
}
Expand description
Defined by AV\C Panel specification.
Variants§
Select = 0
Up = 1
Down = 2
Left = 3
Right = 4
RootMenu = 9
ContentsMenu = 11
FavoriteMenu = 12
Exit = 13
OnDemandMenu = 14
AppsMenu = 15
Key0 = 32
Key1 = 33
Key2 = 34
Key3 = 35
Key4 = 36
Key5 = 37
Key6 = 38
Key7 = 39
Key8 = 40
Key9 = 41
Dot = 42
Enter = 43
ChannelUp = 48
ChannelDown = 49
ChannelPrevious = 50
InputSelect = 52
Info = 53
Help = 54
PageUp = 55
PageDown = 56
Lock = 58
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
List = 77
F1 = 113
F2 = 114
F3 = 115
F4 = 116
F5 = 117
F6 = 118
F7 = 119
F8 = 120
F9 = 121
Red = 122
Green = 123
Blue = 124
Yellow = 125
Implementations§
§impl AvcPanelCommand
impl AvcPanelCommand
pub fn from_primitive(prim: u8) -> Option<AvcPanelCommand>
pub const fn into_primitive(self) -> u8
pub fn is_unknown(&self) -> bool
👎Deprecated: Strict enums should not use
is_unknown
Trait Implementations§
§impl Clone for AvcPanelCommand
impl Clone for AvcPanelCommand
§fn clone(&self) -> AvcPanelCommand
fn clone(&self) -> AvcPanelCommand
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 more§impl Debug for AvcPanelCommand
impl Debug for AvcPanelCommand
§impl<D> Decode<AvcPanelCommand, D> for AvcPanelCommandwhere
D: ResourceDialect,
impl<D> Decode<AvcPanelCommand, D> for AvcPanelCommandwhere
D: ResourceDialect,
§fn new_empty() -> AvcPanelCommand
fn new_empty() -> AvcPanelCommand
Creates a valid instance of
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl<D> Encode<AvcPanelCommand, D> for AvcPanelCommandwhere
D: ResourceDialect,
impl<D> Encode<AvcPanelCommand, D> for AvcPanelCommandwhere
D: ResourceDialect,
§impl Hash for AvcPanelCommand
impl Hash for AvcPanelCommand
§impl Ord for AvcPanelCommand
impl Ord for AvcPanelCommand
§impl PartialEq for AvcPanelCommand
impl PartialEq for AvcPanelCommand
§impl PartialOrd for AvcPanelCommand
impl PartialOrd for AvcPanelCommand
§impl TypeMarker for AvcPanelCommand
impl TypeMarker for AvcPanelCommand
§type Owned = AvcPanelCommand
type Owned = AvcPanelCommand
The owned Rust type which this FIDL type decodes into.
§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.§impl ValueTypeMarker for AvcPanelCommand
impl ValueTypeMarker for AvcPanelCommand
§type Borrowed<'a> = AvcPanelCommand
type Borrowed<'a> = AvcPanelCommand
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more§fn borrow(
value: &<AvcPanelCommand as TypeMarker>::Owned,
) -> <AvcPanelCommand as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<AvcPanelCommand as TypeMarker>::Owned, ) -> <AvcPanelCommand as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned
to Self::Borrowed
.impl Copy for AvcPanelCommand
impl Eq for AvcPanelCommand
impl StructuralPartialEq for AvcPanelCommand
Auto Trait Implementations§
impl Freeze for AvcPanelCommand
impl RefUnwindSafe for AvcPanelCommand
impl Send for AvcPanelCommand
impl Sync for AvcPanelCommand
impl Unpin for AvcPanelCommand
impl UnwindSafe for AvcPanelCommand
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