#[non_exhaustive]pub struct DisplayCapabilities {Show 50 fields
pub manufacturer: Option<ManufacturerId>,
pub manufacture_date: Option<ManufactureDate>,
pub edid_version: Option<EdidVersion>,
pub product_code: Option<u16>,
pub serial_number: Option<u32>,
pub serial_number_string: Option<MonitorString>,
pub display_name: Option<MonitorString>,
pub unspecified_text: [Option<MonitorString>; 4],
pub white_points: [Option<WhitePoint>; 2],
pub digital: bool,
pub color_bit_depth: Option<ColorBitDepth>,
pub display_technology: Option<DisplayTechnology>,
pub display_subtype: Option<u8>,
pub operating_mode: Option<OperatingMode>,
pub backlight_type: Option<BacklightType>,
pub data_enable_used: Option<bool>,
pub data_enable_positive: Option<bool>,
pub native_pixels: Option<(u16, u16)>,
pub panel_aspect_ratio_100: Option<u8>,
pub physical_orientation: Option<PhysicalOrientation>,
pub rotation_capability: Option<RotationCapability>,
pub zero_pixel_location: Option<ZeroPixelLocation>,
pub scan_direction: Option<ScanDirection>,
pub subpixel_layout: Option<SubpixelLayout>,
pub pixel_pitch_hundredths_mm: Option<(u8, u8)>,
pub pixel_response_time_ms: Option<u8>,
pub power_sequencing: Option<PowerSequencing>,
pub transfer_characteristic: Option<DisplayIdTransferCharacteristic>,
pub display_id_interface: Option<DisplayIdInterface>,
pub stereo_interface: Option<DisplayIdStereoInterface>,
pub tiled_topology: Option<DisplayIdTiledTopology>,
pub chromaticity: Chromaticity,
pub gamma: Option<DisplayGamma>,
pub display_features: Option<DisplayFeatureFlags>,
pub digital_color_encoding: Option<DigitalColorEncoding>,
pub analog_color_type: Option<AnalogColorType>,
pub video_interface: Option<VideoInterface>,
pub analog_sync_level: Option<AnalogSyncLevel>,
pub screen_size: Option<ScreenSize>,
pub min_v_rate: Option<u16>,
pub max_v_rate: Option<u16>,
pub min_h_rate_khz: Option<u16>,
pub max_h_rate_khz: Option<u16>,
pub max_pixel_clock_mhz: Option<u16>,
pub preferred_image_size_mm: Option<(u16, u16)>,
pub timing_formula: Option<TimingFormula>,
pub color_management: Option<ColorManagementData>,
pub supported_modes: Vec<VideoMode>,
pub warnings: Vec<ParseWarning>,
pub extension_data: Vec<(u8, Arc<dyn ExtensionData>)>,
}Expand description
Consumer-facing display capability model produced by a display data parser.
All fields defined by the relevant specification are decoded and exposed here. No field is omitted because it appears obscure or unlikely to be needed — that judgement belongs to the consumer, not the library.
Fields are Option where the underlying data may be absent or undecodable.
None means the value was not present or could not be reliably determined; it does
not imply the field is unimportant. The library never invents or defaults data.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.manufacturer: Option<ManufacturerId>Three-character PNP manufacturer ID (e.g. GSM for LG, SAM for Samsung).
manufacture_date: Option<ManufactureDate>Manufacture date or model year.
edid_version: Option<EdidVersion>EDID specification version and revision.
product_code: Option<u16>Manufacturer-assigned product code.
serial_number: Option<u32>Manufacturer-assigned serial number, if encoded numerically in the base block.
serial_number_string: Option<MonitorString>Serial number string from the monitor serial number descriptor (0xFF), if present.
display_name: Option<MonitorString>Human-readable display name from the monitor name descriptor, if present.
unspecified_text: [Option<MonitorString>; 4]Unspecified ASCII text strings from 0xFE descriptors, in descriptor slot order.
Up to four entries (one per descriptor slot). Each slot is None if the corresponding
descriptor was not a 0xFE entry.
white_points: [Option<WhitePoint>; 2]Additional white points from the 0xFB descriptor.
Up to two entries (the EDID 0xFB descriptor has two fixed slots). Each slot is
None if the corresponding entry was unused (index byte 0x00).
digital: booltrue if the display uses a digital input interface.
color_bit_depth: Option<ColorBitDepth>Color bit depth per primary channel.
None for analog displays or when the field is undefined or reserved.
display_technology: Option<DisplayTechnology>Physical display technology (e.g. TFT, OLED, PDP).
None when the Display Device Data Block is absent.
display_subtype: Option<u8>Technology-specific sub-type code (raw, 0–15).
None when the Display Device Data Block is absent.
operating_mode: Option<OperatingMode>Panel operating mode (continuous or non-continuous refresh).
None when the Display Device Data Block is absent.
backlight_type: Option<BacklightType>Backlight type.
None when the Display Device Data Block is absent.
data_enable_used: Option<bool>Whether the panel uses a Data Enable (DE) signal.
None when the Display Device Data Block is absent.
data_enable_positive: Option<bool>Data Enable signal polarity: true = positive, false = negative.
Valid only when data_enable_used is Some(true).
None when the Display Device Data Block is absent.
native_pixels: Option<(u16, u16)>Native pixel format (width_px, height_px).
None when the Display Device Data Block is absent or either dimension is zero.
panel_aspect_ratio_100: Option<u8>Panel aspect ratio encoded as (AR − 1) × 100 (raw byte).
For example 77 represents approximately 16:9 (AR ≈ 1.77). None when the block is absent.
physical_orientation: Option<PhysicalOrientation>Physical mounting orientation of the panel.
None when the Display Device Data Block is absent.
rotation_capability: Option<RotationCapability>Panel rotation capability.
None when the Display Device Data Block is absent.
zero_pixel_location: Option<ZeroPixelLocation>Location of the zero (origin) pixel in the framebuffer.
None when the Display Device Data Block is absent.
scan_direction: Option<ScanDirection>Fast-scan direction relative to H-sync.
None when the Display Device Data Block is absent.
subpixel_layout: Option<SubpixelLayout>Sub-pixel color filter arrangement.
None when the Display Device Data Block is absent.
pixel_pitch_hundredths_mm: Option<(u8, u8)>Pixel pitch (horizontal_hundredths_mm, vertical_hundredths_mm) in 0.01 mm units.
None when the Display Device Data Block is absent or either pitch is zero.
pixel_response_time_ms: Option<u8>Pixel response time in milliseconds.
None when the Display Device Data Block is absent or the value is zero.
power_sequencing: Option<PowerSequencing>Interface power sequencing timing parameters.
None when the Interface Power Sequencing Block is absent.
transfer_characteristic: Option<DisplayIdTransferCharacteristic>Display luminance transfer function.
None when the Transfer Characteristics Block is absent.
display_id_interface: Option<DisplayIdInterface>Physical display interface capabilities.
None when the Display Interface Data Block is absent.
stereo_interface: Option<DisplayIdStereoInterface>Stereo display interface parameters.
None when the Stereo Display Interface Data Block is absent.
tiled_topology: Option<DisplayIdTiledTopology>Tiled display topology.
None when the Tiled Display Topology Data Block is absent.
chromaticity: ChromaticityCIE xy chromaticity coordinates for the color primaries and white point.
gamma: Option<DisplayGamma>Display gamma. None if the display did not specify a gamma value.
display_features: Option<DisplayFeatureFlags>Display feature support flags.
digital_color_encoding: Option<DigitalColorEncoding>Supported color encoding formats. Only populated for EDID 1.4+ digital displays.
analog_color_type: Option<AnalogColorType>Color type for analog displays; None for the undefined value (0b11).
video_interface: Option<VideoInterface>Video interface type.
None for analog displays or when the field is undefined or reserved.
analog_sync_level: Option<AnalogSyncLevel>Analog sync and video white levels. Only populated for analog displays.
screen_size: Option<ScreenSize>Physical screen dimensions or aspect ratio.
None when both bytes are zero (undefined).
min_v_rate: Option<u16>Minimum supported vertical refresh rate in Hz.
max_v_rate: Option<u16>Maximum supported vertical refresh rate in Hz.
min_h_rate_khz: Option<u16>Minimum supported horizontal scan rate in kHz.
max_h_rate_khz: Option<u16>Maximum supported horizontal scan rate in kHz.
max_pixel_clock_mhz: Option<u16>Maximum pixel clock in MHz.
preferred_image_size_mm: Option<(u16, u16)>Physical image area dimensions in millimetres (width_mm, height_mm).
More precise than screen_size (which is in cm).
None when all DTD image-size fields are zero.
timing_formula: Option<TimingFormula>Video timing formula reported in the display range limits descriptor.
color_management: Option<ColorManagementData>DCM polynomial coefficients.
supported_modes: Vec<VideoMode>Video modes decoded from the display data.
warnings: Vec<ParseWarning>Non-fatal conditions collected from the parser and all handlers.
Not serialized — use a custom handler to map warnings to a serializable form.
extension_data: Vec<(u8, Arc<dyn ExtensionData>)>Typed data attached by extension handlers, keyed by extension tag byte.
Uses a Vec of (tag, data) pairs rather than a HashMap so that this field is
available in alloc-only (no_std) builds. The number of distinct extension tags in
any real EDID is small enough that linear scan is negligible.
Not serialized — use a custom handler to map this to a serializable form.
Implementations§
Source§impl DisplayCapabilities
impl DisplayCapabilities
Sourcepub fn iter_warnings(&self) -> impl Iterator<Item = &ParseWarning>
pub fn iter_warnings(&self) -> impl Iterator<Item = &ParseWarning>
Returns an iterator over all collected warnings.
Sourcepub fn push_warning(&mut self, w: impl Error + Send + Sync + 'static)
pub fn push_warning(&mut self, w: impl Error + Send + Sync + 'static)
Appends a warning, wrapping it in a ParseWarning.
Sourcepub fn set_extension_data<T: ExtensionData>(&mut self, tag: u8, data: T)
pub fn set_extension_data<T: ExtensionData>(&mut self, tag: u8, data: T)
Store typed data from a handler, keyed by an extension tag. Replaces any previously stored entry for the same tag.
Trait Implementations§
Source§impl Clone for DisplayCapabilities
impl Clone for DisplayCapabilities
Source§fn clone(&self) -> DisplayCapabilities
fn clone(&self) -> DisplayCapabilities
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more