#[non_exhaustive]pub struct ConnectorInfo {
pub name: String,
pub make: String,
pub model: String,
pub serial: Option<String>,
pub width_mm: i32,
pub height_mm: i32,
pub colorimetry: Option<ColorimetryInfo>,
pub hdr: Option<HdrStaticMetadata>,
pub wide_gamut: Option<SupportedColorimetry>,
pub vrefresh_range: Option<VrefreshRange>,
}Expand description
What a connector’s attached display reports.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringMake and model joined, for display to a person.
make: StringManufacturer — a company name where the PNP ID is known, else the ID.
model: StringProduct name or model.
serial: Option<String>Per-unit serial number, where the display gives one.
width_mm: i32Physical width in millimeters.
height_mm: i32Physical height in millimeters.
colorimetry: Option<ColorimetryInfo>Color primaries, where present.
hdr: Option<HdrStaticMetadata>HDR static metadata, where the display advertises any.
wide_gamut: Option<SupportedColorimetry>Extra colorimetry encodings, where any are advertised.
vrefresh_range: Option<VrefreshRange>The refresh range the panel states, where it states one.
Trait Implementations§
Source§impl Clone for ConnectorInfo
impl Clone for ConnectorInfo
Source§impl Debug for ConnectorInfo
impl Debug for ConnectorInfo
Source§impl Default for ConnectorInfo
impl Default for ConnectorInfo
Source§impl PartialEq for ConnectorInfo
impl PartialEq for ConnectorInfo
impl StructuralPartialEq for ConnectorInfo
Auto Trait Implementations§
impl Freeze for ConnectorInfo
impl RefUnwindSafe for ConnectorInfo
impl Send for ConnectorInfo
impl Sync for ConnectorInfo
impl Unpin for ConnectorInfo
impl UnsafeUnpin for ConnectorInfo
impl UnwindSafe for ConnectorInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more