pub struct Connector { /* private fields */ }Expand description
Structure representing connector.
Implementations§
Source§impl Connector
General methods
impl Connector
General methods
Sourcepub fn new(connector: drmModeConnectorPtr) -> Self
pub fn new(connector: drmModeConnectorPtr) -> Self
Connector constructor.
Does not check if passed arguments are valid.
Sourcepub fn get_type_name(&self) -> &'static str
pub fn get_type_name(&self) -> &'static str
Get string representation of connector type.
Source§impl Connector
Getters for original members
impl Connector
Getters for original members
pub fn get_connector_id(&self) -> ConnectorId
Sourcepub fn get_encoder_id(&self) -> u32
pub fn get_encoder_id(&self) -> u32
Get id of encoder currently connected to.
pub fn get_connector_type(&self) -> ConnectorType
pub fn get_connector_type_id(&self) -> ConnectorTypeId
pub fn get_connection(&self) -> Connection
Sourcepub fn get_mm_width(&self) -> u32
pub fn get_mm_width(&self) -> u32
Get width in millimeters.
Sourcepub fn get_mm_height(&self) -> u32
pub fn get_mm_height(&self) -> u32
Get height in millimeters.
Sourcepub fn get_count_modes(&self) -> i32
pub fn get_count_modes(&self) -> i32
Get count of modes.
Sourcepub fn get_count_encoders(&self) -> i32
pub fn get_count_encoders(&self) -> i32
Get count of encoders.
Sourcepub fn get_encoders(&self) -> Vec<EncoderId> ⓘ
pub fn get_encoders(&self) -> Vec<EncoderId> ⓘ
Return vector of encoder ids.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Connector
impl RefUnwindSafe for Connector
impl !Send for Connector
impl !Sync for Connector
impl Unpin for Connector
impl UnwindSafe for Connector
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