Struct Connector

Source
pub struct Connector { /* private fields */ }
Expand description

Structure representing connector.

Implementations§

Source§

impl Connector

General methods

Source

pub fn new(connector: drmModeConnectorPtr) -> Self

Connector constructor. Does not check if passed arguments are valid.

Source

pub fn get_type_name(&self) -> &'static str

Get string representation of connector type.

Source§

impl Connector

Getters for original members

Source

pub fn get_connector_id(&self) -> ConnectorId

Source

pub fn get_encoder_id(&self) -> u32

Get id of encoder currently connected to.

Source

pub fn get_connector_type(&self) -> ConnectorType

Source

pub fn get_connector_type_id(&self) -> ConnectorTypeId

Source

pub fn get_connection(&self) -> Connection

Source

pub fn get_mm_width(&self) -> u32

Get width in millimeters.

Source

pub fn get_mm_height(&self) -> u32

Get height in millimeters.

Source

pub fn get_count_modes(&self) -> i32

Get count of modes.

Source

pub fn get_count_encoders(&self) -> i32

Get count of encoders.

Source

pub fn get_modes(&self) -> Vec<ModeInfo>

Return vector of modes.

Source

pub fn get_encoders(&self) -> Vec<EncoderId>

Return vector of encoder ids.

Trait Implementations§

Source§

impl Debug for Connector

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Drop for Connector

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.