#[non_exhaustive]pub struct ConnectorModes {
pub connector_id: u32,
pub interface: Interface,
pub interface_id: u32,
pub connected: bool,
pub modes: Vec<Mode>,
}Expand description
One connector and the modes it advertises.
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.connector_id: u32The connector’s object id.
interface: InterfaceWhat kind of connector it is.
interface_id: u32Which one of that kind – the -N in HDMI-A-1.
connected: boolWhether a display is attached.
modes: Vec<Mode>The modes, in the order the kernel lists them: preferred first on
almost every driver, but that is a convention rather than a promise –
select_preferred_mode reads
the flag instead. ModeInfo is the
extension trait that reads the rest.
Implementations§
Trait Implementations§
Source§impl Clone for ConnectorModes
impl Clone for ConnectorModes
Source§impl Debug for ConnectorModes
impl Debug for ConnectorModes
Source§impl PartialEq for ConnectorModes
impl PartialEq for ConnectorModes
impl StructuralPartialEq for ConnectorModes
Auto Trait Implementations§
impl Freeze for ConnectorModes
impl RefUnwindSafe for ConnectorModes
impl Send for ConnectorModes
impl Sync for ConnectorModes
impl Unpin for ConnectorModes
impl UnsafeUnpin for ConnectorModes
impl UnwindSafe for ConnectorModes
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