Struct ddc_hi::DisplayInfo [] [src]

pub struct DisplayInfo {
    pub backend: Backend,
    pub id: String,
    pub manufacturer_id: Option<String>,
    pub model_id: Option<u16>,
    pub version: Option<(u8, u8)>,
    pub serial: Option<u32>,
    pub manufacture_year: Option<u8>,
    pub manufacture_week: Option<u8>,
    pub model_name: Option<String>,
    pub serial_number: Option<String>,
    pub edid_data: Option<Vec<u8>>,
    pub mccs_version: Option<Version>,
    pub mccs_database: Database,
}

Identifying information about an attached display.

Not all information will be available, particularly on backends like WinAPI that do not support EDID.

Fields

Identifies the backend or driver used to communicate with the display.

A unique identifier for the display, format is specific to the backend.

A three-character identifier of the manufacturer of the display.

A number that identifies the product model.

The version and revision of the product.

Serial number of the device

Year the display was manufactured.

Week the display was manufactured.

The model name of the display.

Human-readable serial number of the device.

Raw EDID data provided by the display.

MCCS VCP version code.

MCCS VCP feature information.

Methods

impl DisplayInfo
[src]

[src]

Create an empty DisplayInfo.

[src]

Creates a new DisplayInfo from unparsed EDID data.

May fail to parse the EDID data.

[src]

Create a new DisplayInfo from parsed capabilities.

[src]

Merge in any missing information from another DisplayInfo

[src]

Populate information from a DDC connection.

This will read the VCP Version (0xdf) and fill in the mccs_database. This data will be incomplete compared to being filled in from a capability string.

Trait Implementations

impl Clone for DisplayInfo
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for DisplayInfo
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for DisplayInfo

impl Sync for DisplayInfo