AuxiliaryDisplay

Enum AuxiliaryDisplay 

Source
#[non_exhaustive]
pub enum AuxiliaryDisplay {
Show 75 variants AlphanumericDisplay, AuxiliaryDisplay, DisplayAttributesReport, ASCIICharacterSet, DataReadBack, FontReadBack, DisplayControlReport, ClearDisplay, DisplayEnable, ScreenSaverDelay, ScreenSaverEnable, VerticalScroll, HorizontalScroll, CharacterReport, DisplayData, DisplayStatus, StatNotReady, StatReady, ErrNotaloadablecharacter, ErrFontdatacannotberead, CursorPositionReport, Row, Column, Rows, Columns, CursorPixelPositioning, CursorMode, CursorEnable, CursorBlink, FontReport, FontData, CharacterWidth, CharacterHeight, CharacterSpacingHorizontal, CharacterSpacingVertical, UnicodeCharacterSet, Font7Segment, SevenSegmentDirectMap, Font14Segment, One4SegmentDirectMap, DisplayBrightness, DisplayContrast, CharacterAttribute, AttributeReadback, AttributeData, CharAttrEnhance, CharAttrUnderline, CharAttrBlink, BitmapSizeX, BitmapSizeY, MaxBlitSize, BitDepthFormat, DisplayOrientation, PaletteReport, PaletteDataSize, PaletteDataOffset, PaletteData, BlitReport, BlitRectangleX1, BlitRectangleY1, BlitRectangleX2, BlitRectangleY2, BlitData, SoftButton, SoftButtonID, SoftButtonSide, SoftButtonOffset1, SoftButtonOffset2, SoftButtonReport, SoftKeys, DisplayDataExtensions, CharacterMapping, UnicodeEquivalent, CharacterPageMapping, RequestReport,
}
Expand description

Usage Page 0x14: “Auxiliary Display”

This enum is autogenerated from the HID Usage Tables.

let u1 = Usage::AuxiliaryDisplay(AuxiliaryDisplay::AuxiliaryDisplay);
let u2 = Usage::new_from_page_and_id(0x14, 0x2).unwrap();
let u3 = Usage::from(AuxiliaryDisplay::AuxiliaryDisplay);
let u4: Usage = AuxiliaryDisplay::AuxiliaryDisplay.into();
assert_eq!(u1, u2);
assert_eq!(u1, u3);
assert_eq!(u1, u4);

assert!(matches!(u1.usage_page(), UsagePage::AuxiliaryDisplay));
assert_eq!(0x14, u1.usage_page_value());
assert_eq!(0x2, u1.usage_id_value());
assert_eq!((0x14 << 16) | 0x2, u1.usage_value());
assert_eq!("Auxiliary Display", u1.name());

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.
§

AlphanumericDisplay

Usage ID 0x1: “Alphanumeric Display”

§

AuxiliaryDisplay

Usage ID 0x2: “Auxiliary Display”

§

DisplayAttributesReport

Usage ID 0x20: “Display Attributes Report”

§

ASCIICharacterSet

Usage ID 0x21: “ASCII Character Set”

§

DataReadBack

Usage ID 0x22: “Data Read Back”

§

FontReadBack

Usage ID 0x23: “Font Read Back”

§

DisplayControlReport

Usage ID 0x24: “Display Control Report”

§

ClearDisplay

Usage ID 0x25: “Clear Display”

§

DisplayEnable

Usage ID 0x26: “Display Enable”

§

ScreenSaverDelay

Usage ID 0x27: “Screen Saver Delay”

§

ScreenSaverEnable

Usage ID 0x28: “Screen Saver Enable”

§

VerticalScroll

Usage ID 0x29: “Vertical Scroll”

§

HorizontalScroll

Usage ID 0x2A: “Horizontal Scroll”

§

CharacterReport

Usage ID 0x2B: “Character Report”

§

DisplayData

Usage ID 0x2C: “Display Data”

§

DisplayStatus

Usage ID 0x2D: “Display Status”

§

StatNotReady

Usage ID 0x2E: “Stat Not Ready”

§

StatReady

Usage ID 0x2F: “Stat Ready”

§

ErrNotaloadablecharacter

Usage ID 0x30: “Err Not a loadable character”

§

ErrFontdatacannotberead

Usage ID 0x31: “Err Font data cannot be read”

§

CursorPositionReport

Usage ID 0x32: “Cursor Position Report”

§

Row

Usage ID 0x33: “Row”

§

Column

Usage ID 0x34: “Column”

§

Rows

Usage ID 0x35: “Rows”

§

Columns

Usage ID 0x36: “Columns”

§

CursorPixelPositioning

Usage ID 0x37: “Cursor Pixel Positioning”

§

CursorMode

Usage ID 0x38: “Cursor Mode”

§

CursorEnable

Usage ID 0x39: “Cursor Enable”

Usage ID 0x3A: “Cursor Blink”

§

FontReport

Usage ID 0x3B: “Font Report”

§

FontData

Usage ID 0x3C: “Font Data”

§

CharacterWidth

Usage ID 0x3D: “Character Width”

§

CharacterHeight

Usage ID 0x3E: “Character Height”

§

CharacterSpacingHorizontal

Usage ID 0x3F: “Character Spacing Horizontal”

§

CharacterSpacingVertical

Usage ID 0x40: “Character Spacing Vertical”

§

UnicodeCharacterSet

Usage ID 0x41: “Unicode Character Set”

§

Font7Segment

Usage ID 0x42: “Font 7-Segment”

§

SevenSegmentDirectMap

Usage ID 0x43: “7-Segment Direct Map”

§

Font14Segment

Usage ID 0x44: “Font 14-Segment”

§

One4SegmentDirectMap

Usage ID 0x45: “14-Segment Direct Map”

§

DisplayBrightness

Usage ID 0x46: “Display Brightness”

§

DisplayContrast

Usage ID 0x47: “Display Contrast”

§

CharacterAttribute

Usage ID 0x48: “Character Attribute”

§

AttributeReadback

Usage ID 0x49: “Attribute Readback”

§

AttributeData

Usage ID 0x4A: “Attribute Data”

§

CharAttrEnhance

Usage ID 0x4B: “Char Attr Enhance”

§

CharAttrUnderline

Usage ID 0x4C: “Char Attr Underline”

Usage ID 0x4D: “Char Attr Blink”

§

BitmapSizeX

Usage ID 0x80: “Bitmap Size X”

§

BitmapSizeY

Usage ID 0x81: “Bitmap Size Y”

§

MaxBlitSize

Usage ID 0x82: “Max Blit Size”

§

BitDepthFormat

Usage ID 0x83: “Bit Depth Format”

§

DisplayOrientation

Usage ID 0x84: “Display Orientation”

§

PaletteReport

Usage ID 0x85: “Palette Report”

§

PaletteDataSize

Usage ID 0x86: “Palette Data Size”

§

PaletteDataOffset

Usage ID 0x87: “Palette Data Offset”

§

PaletteData

Usage ID 0x88: “Palette Data”

§

BlitReport

Usage ID 0x8A: “Blit Report”

§

BlitRectangleX1

Usage ID 0x8B: “Blit Rectangle X1”

§

BlitRectangleY1

Usage ID 0x8C: “Blit Rectangle Y1”

§

BlitRectangleX2

Usage ID 0x8D: “Blit Rectangle X2”

§

BlitRectangleY2

Usage ID 0x8E: “Blit Rectangle Y2”

§

BlitData

Usage ID 0x8F: “Blit Data”

§

SoftButton

Usage ID 0x90: “Soft Button”

§

SoftButtonID

Usage ID 0x91: “Soft Button ID”

§

SoftButtonSide

Usage ID 0x92: “Soft Button Side”

§

SoftButtonOffset1

Usage ID 0x93: “Soft Button Offset 1”

§

SoftButtonOffset2

Usage ID 0x94: “Soft Button Offset 2”

§

SoftButtonReport

Usage ID 0x95: “Soft Button Report”

§

SoftKeys

Usage ID 0xC2: “Soft Keys”

§

DisplayDataExtensions

Usage ID 0xCC: “Display Data Extensions”

§

CharacterMapping

Usage ID 0xCF: “Character Mapping”

§

UnicodeEquivalent

Usage ID 0xDD: “Unicode Equivalent”

§

CharacterPageMapping

Usage ID 0xDF: “Character Page Mapping”

§

RequestReport

Usage ID 0xFF: “Request Report”

Implementations§

Trait Implementations§

Source§

impl AsUsage for AuxiliaryDisplay

Source§

fn usage_value(&self) -> u32

Returns the 32 bit Usage value of this Usage

Source§

fn usage_id_value(&self) -> u16

Returns the 16 bit Usage ID value of this Usage

Source§

fn usage(&self) -> Usage

Returns this usage as Usage::AuxiliaryDisplay(self) This is a convenience function to avoid having to implement From for every used type in the caller.

let gd_x = GenericDesktop::X;
let usage = Usage::from(GenericDesktop::X);
assert!(matches!(gd_x.usage(), usage));
Source§

impl AsUsagePage for AuxiliaryDisplay

Source§

fn usage_page_value(&self) -> u16

Returns the 16 bit value of this UsagePage

This value is 0x14 for AuxiliaryDisplay

Source§

fn usage_page(&self) -> UsagePage

Source§

impl BitOr<u16> for AuxiliaryDisplay

Source§

fn bitor(self, usage: u16) -> Usage

A convenience function to combine a Usage Page with a value.

This function panics if the Usage ID value results in an unknown Usage. Where error checking is required, use UsagePage::to_usage_from_value.

Source§

type Output = Usage

The resulting type after applying the | operator.
Source§

impl Debug for AuxiliaryDisplay

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for AuxiliaryDisplay

Available on crate feature std only.
Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<&AuxiliaryDisplay> for Usage

Source§

fn from(auxiliarydisplay: &AuxiliaryDisplay) -> Usage

Converts to this type from the input type.
Source§

impl From<&AuxiliaryDisplay> for UsagePage

Source§

impl From<&AuxiliaryDisplay> for u16

Source§

fn from(auxiliarydisplay: &AuxiliaryDisplay) -> u16

Converts to this type from the input type.
Source§

impl From<&AuxiliaryDisplay> for u32

Source§

fn from(auxiliarydisplay: &AuxiliaryDisplay) -> u32

Returns the 32 bit value of this usage. This is identical to AuxiliaryDisplay::usage_value().

Source§

impl From<AuxiliaryDisplay> for Usage

Source§

fn from(auxiliarydisplay: AuxiliaryDisplay) -> Usage

Converts to this type from the input type.
Source§

impl From<AuxiliaryDisplay> for UsagePage

Source§

impl From<AuxiliaryDisplay> for u16

Source§

fn from(auxiliarydisplay: AuxiliaryDisplay) -> u16

Returns the 16bit value of this usage. This is identical to AuxiliaryDisplay::usage_page_value().

Source§

impl TryFrom<u16> for AuxiliaryDisplay

Source§

type Error = HutError

The type returned in the event of a conversion error.
Source§

fn try_from(usage_id: u16) -> Result<AuxiliaryDisplay, HutError>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> ToString for T
where T: Display + ?Sized,

§

fn to_string(&self) -> String

Converts the given value to a String. Read more
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.