#[non_exhaustive]pub struct DisplayIdInterface {
pub interface_type: DisplayInterfaceType,
pub spread_spectrum: bool,
pub num_lanes: u8,
pub min_pixel_clock_10khz: u32,
pub max_pixel_clock_10khz: u32,
pub content_protection: InterfaceContentProtection,
}Expand description
Display interface capabilities, decoded from the Display Interface Data Block
(DisplayID 1.x 0x0F).
Identifies the physical interface type, link characteristics, pixel clock range, and supported content protection mechanism.
Stored in DisplayCapabilities::display_id_interface.
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.interface_type: DisplayInterfaceTypePhysical interface standard (LVDS, eDP, DisplayPort, TMDS, etc.).
spread_spectrum: boolWhether spread-spectrum clocking is supported on this interface.
num_lanes: u8Number of data lanes or LVDS pairs (raw count from byte 1 bits 3:0).
min_pixel_clock_10khz: u32Minimum pixel clock in units of 10 kHz (from bytes 2–3, LE uint16).
max_pixel_clock_10khz: u32Maximum pixel clock in units of 10 kHz (from bytes 4–5, LE uint16).
content_protection: InterfaceContentProtectionContent protection mechanism supported on this interface.
Implementations§
Source§impl DisplayIdInterface
impl DisplayIdInterface
Sourcepub fn new(
interface_type: DisplayInterfaceType,
spread_spectrum: bool,
num_lanes: u8,
min_pixel_clock_10khz: u32,
max_pixel_clock_10khz: u32,
content_protection: InterfaceContentProtection,
) -> Self
pub fn new( interface_type: DisplayInterfaceType, spread_spectrum: bool, num_lanes: u8, min_pixel_clock_10khz: u32, max_pixel_clock_10khz: u32, content_protection: InterfaceContentProtection, ) -> Self
Constructs a DisplayIdInterface from its decoded fields.
Trait Implementations§
Source§impl Clone for DisplayIdInterface
impl Clone for DisplayIdInterface
Source§fn clone(&self) -> DisplayIdInterface
fn clone(&self) -> DisplayIdInterface
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DisplayIdInterface
impl Debug for DisplayIdInterface
Source§impl PartialEq for DisplayIdInterface
impl PartialEq for DisplayIdInterface
impl Copy for DisplayIdInterface
impl Eq for DisplayIdInterface
impl StructuralPartialEq for DisplayIdInterface
Auto Trait Implementations§
impl Freeze for DisplayIdInterface
impl RefUnwindSafe for DisplayIdInterface
impl Send for DisplayIdInterface
impl Sync for DisplayIdInterface
impl Unpin for DisplayIdInterface
impl UnsafeUnpin for DisplayIdInterface
impl UnwindSafe for DisplayIdInterface
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