pub struct ConnectorState {
pub id: ConnectorId,
pub current_encoder_id: EncoderId,
pub connector_type: ConnectorType,
pub connector_type_id: u32,
pub connection_state: ConnectionState,
pub width_mm: u32,
pub height_mm: u32,
pub subpixel_type: SubpixelType,
pub modes: Vec<ModeInfo>,
pub props: Vec<ModeProp>,
pub available_encoder_ids: Vec<u32>,
}
Fields§
§id: ConnectorId
§current_encoder_id: EncoderId
§connector_type: ConnectorType
§connector_type_id: u32
§connection_state: ConnectionState
§width_mm: u32
§height_mm: u32
§subpixel_type: SubpixelType
§modes: Vec<ModeInfo>
§props: Vec<ModeProp>
§available_encoder_ids: Vec<u32>
Implementations§
Source§impl ConnectorState
impl ConnectorState
pub fn preferred_mode(&self) -> Option<&ModeInfo>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConnectorState
impl RefUnwindSafe for ConnectorState
impl Send for ConnectorState
impl Sync for ConnectorState
impl Unpin for ConnectorState
impl UnwindSafe for ConnectorState
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