Edid

Struct Edid 

Source
pub struct Edid<'info> { /* private fields */ }
Expand description

EDID data structure.

Implementations§

Source§

impl Edid<'_>

Source

pub fn version(&self) -> i32

Get the EDID version.

Source

pub fn revision(&self) -> i32

Get the EDID revision.

Source

pub fn vendor_product(&self) -> VendorProduct

Get the EDID vendor product

Source

pub fn video_input_analog(&self) -> Option<VideoInputAnalog>

Get the analog video input basic information.

Returns None if this isn’t an analog display.

Source

pub fn video_input_digital(&self) -> Option<VideoInputDigital>

Get the digital video input basic information.

Returns None if this isn’t a digital display.

Source

pub fn screen_size(&self) -> ScreenSize

Get the screen size.

Source

pub fn basic_gamma(&self) -> Option<f32>

Get the display transfer characteristics from the basic EDID parameters, also known as "gamma".

Returns None if unset (ie, stored in an extension block).

Source

pub fn dpms(&self) -> Dpms

Get the set of supported legacy DPMS states.

Source

pub fn display_color_type(&self) -> DisplayColorType

Get the display color type.

For digital displays using EDID 1.4 and later, DisplayColorType::Undefined is always returned.

Source

pub fn color_encoding_formats(&self) -> Option<ColorEncodingFormats>

Get the set of supported color encoding formats.

Returns None if the display is analog or if the color encoding formats are not specified.

Source

pub fn misc_features(&self) -> MiscFeatures

Get the set of miscellaneous basic features.

Source

pub fn chromaticity_coords(&self) -> ChromaticityCoords

Get chromaticity coordinates.

Source

pub fn established_timings(&self) -> EstablishedTimings

Get established timings I and II.

Source

pub fn standard_timings(&self) -> &[StandardTimingRef]

Get a list of EDID standard timings.

Source

pub fn detailed_timing_defs(&self) -> impl Iterator<Item = DetailedTimingDef>

Source

pub fn display_descriptors(&self) -> &[DisplayDescriptorRef]

Get a list of EDID display descriptors.

Source

pub fn extensions(&self) -> &[ExtensionRef]

Get a list of EDID extensions.

Trait Implementations§

Source§

impl<'info> Debug for Edid<'info>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'info> Freeze for Edid<'info>

§

impl<'info> RefUnwindSafe for Edid<'info>

§

impl<'info> !Send for Edid<'info>

§

impl<'info> !Sync for Edid<'info>

§

impl<'info> Unpin for Edid<'info>

§

impl<'info> UnwindSafe for Edid<'info>

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

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

Source§

type Error = Infallible

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

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

Performs the conversion.
Source§

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

Source§

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

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

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

Performs the conversion.