Struct ddc_hi::DisplayInfo[][src]

pub struct DisplayInfo {
Show 13 fields 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,
}
Expand description

Identifying information about an attached display.

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

Fields

backend: Backend

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

id: String

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

manufacturer_id: Option<String>

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

model_id: Option<u16>

A number that identifies the product model.

version: Option<(u8, u8)>

The version and revision of the product.

serial: Option<u32>

Serial number of the device

manufacture_year: Option<u8>

Year the display was manufactured.

manufacture_week: Option<u8>

Week the display was manufactured.

model_name: Option<String>

The model name of the display.

serial_number: Option<String>

Human-readable serial number of the device.

edid_data: Option<Vec<u8>>

Raw EDID data provided by the display.

mccs_version: Option<Version>

MCCS VCP version code.

mccs_database: Database

MCCS VCP feature information.

Implementations

Create an empty DisplayInfo.

Creates a new DisplayInfo from unparsed EDID data.

May fail to parse the EDID data.

Create a new DisplayInfo from parsed capabilities.

Merge in any missing information from another DisplayInfo

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.