pub enum HidKey {
Show 15 variants
Up,
Down,
Left,
Right,
Select,
Back,
Home,
Menu,
VolumeUp,
VolumeDown,
Mute,
PlayPause,
NextTrack,
PrevTrack,
Power,
}Expand description
Keys the bridge can send to Google TV.
Append-only (wire ABI); keep HidKey::ALL and the name table in sync.
The serde renames only affect self-describing formats (JSON/TOML on the
host); postcard encodes the variant index.
Variants§
Up
Down
Left
Right
Select
Back
Home
Menu
VolumeUp
VolumeDown
Mute
PlayPause
NextTrack
PrevTrack
Power
Implementations§
Trait Implementations§
impl Copy for HidKey
Source§impl<'de> Deserialize<'de> for HidKey
impl<'de> Deserialize<'de> for HidKey
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<HidKey, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<HidKey, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for HidKey
Source§impl Ord for HidKey
impl Ord for HidKey
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for HidKey
impl PartialOrd for HidKey
Source§impl Serialize for HidKey
impl Serialize for HidKey
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for HidKey
Auto Trait Implementations§
impl Freeze for HidKey
impl RefUnwindSafe for HidKey
impl Send for HidKey
impl Sync for HidKey
impl Unpin for HidKey
impl UnsafeUnpin for HidKey
impl UnwindSafe for HidKey
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