#[non_exhaustive]pub enum DisplayInterfaceType {
Undefined,
Analog,
LvdsSingle,
LvdsDual,
TmdsSingle,
TmdsDual,
EmbeddedDisplayPort,
DisplayPort,
Proprietary,
Reserved(u8),
}Expand description
Physical interface standard type, decoded from Display Interface Data Block (0x0F) byte 0 bits 3:0.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Undefined
Undefined / not specified (0x0).
Analog
Analog (VGA) interface (0x1).
LvdsSingle
LVDS single link (0x2).
LvdsDual
LVDS dual link (0x3).
TmdsSingle
TMDS single link — DVI-D single or HDMI (0x4).
TmdsDual
TMDS dual link — DVI-DL or HDMI dual (0x5).
EmbeddedDisplayPort
Embedded DisplayPort (eDP) (0x6).
DisplayPort
External DisplayPort (DP) (0x7).
Proprietary
Proprietary interface (0x8).
Reserved(u8)
Reserved or unrecognized value (0x9–0xF).
Implementations§
Source§impl DisplayInterfaceType
impl DisplayInterfaceType
Sourcepub fn from_nibble(nibble: u8) -> Self
pub fn from_nibble(nibble: u8) -> Self
Decodes the interface type from the lower 4 bits of byte 0.
Trait Implementations§
Source§impl Clone for DisplayInterfaceType
impl Clone for DisplayInterfaceType
Source§fn clone(&self) -> DisplayInterfaceType
fn clone(&self) -> DisplayInterfaceType
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 DisplayInterfaceType
impl Debug for DisplayInterfaceType
Source§impl PartialEq for DisplayInterfaceType
impl PartialEq for DisplayInterfaceType
impl Copy for DisplayInterfaceType
impl Eq for DisplayInterfaceType
impl StructuralPartialEq for DisplayInterfaceType
Auto Trait Implementations§
impl Freeze for DisplayInterfaceType
impl RefUnwindSafe for DisplayInterfaceType
impl Send for DisplayInterfaceType
impl Sync for DisplayInterfaceType
impl Unpin for DisplayInterfaceType
impl UnsafeUnpin for DisplayInterfaceType
impl UnwindSafe for DisplayInterfaceType
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