• Home
  • Raw
  • Download

Lines Matching full:interface

53     pub(crate) interface: Interface,  field
69 /// Returns the type of `Interface` of this connector.
70 pub fn interface(&self) -> Interface { in interface() method
71 self.interface in interface()
74 /// Returns the interface ID of this connector.
76 /// When multiple connectors have the same `Interface`, they will have
77 /// different interface IDs.
113 /// A physical interface type.
118 pub enum Interface { enum
142 impl Interface { implementation
143 /// Get interface name as string
147 Interface::Unknown => "Unknown", in as_str()
148 Interface::VGA => "VGA", in as_str()
149 Interface::DVII => "DVI-I", in as_str()
150 Interface::DVID => "DVI-D", in as_str()
151 Interface::DVIA => "DVI-A", in as_str()
152 Interface::Composite => "Composite", in as_str()
153 Interface::SVideo => "SVIDEO", in as_str()
154 Interface::LVDS => "LVDS", in as_str()
155 Interface::Component => "Component", in as_str()
156 Interface::NinePinDIN => "DIN", in as_str()
157 Interface::DisplayPort => "DP", in as_str()
158 Interface::HDMIA => "HDMI-A", in as_str()
159 Interface::HDMIB => "HDMI-B", in as_str()
160 Interface::TV => "TV", in as_str()
161 Interface::EmbeddedDisplayPort => "eDP", in as_str()
162 Interface::Virtual => "Virtual", in as_str()
163 Interface::DSI => "DSI", in as_str()
164 Interface::DPI => "DPI", in as_str()
165 Interface::Writeback => "Writeback", in as_str()
166 Interface::SPI => "SPI", in as_str()
167 Interface::USB => "USB", in as_str()
172 impl From<u32> for Interface { implementation
175 ffi::DRM_MODE_CONNECTOR_Unknown => Interface::Unknown, in from()
176 ffi::DRM_MODE_CONNECTOR_VGA => Interface::VGA, in from()
177 ffi::DRM_MODE_CONNECTOR_DVII => Interface::DVII, in from()
178 ffi::DRM_MODE_CONNECTOR_DVID => Interface::DVID, in from()
179 ffi::DRM_MODE_CONNECTOR_DVIA => Interface::DVIA, in from()
180 ffi::DRM_MODE_CONNECTOR_Composite => Interface::Composite, in from()
181 ffi::DRM_MODE_CONNECTOR_SVIDEO => Interface::SVideo, in from()
182 ffi::DRM_MODE_CONNECTOR_LVDS => Interface::LVDS, in from()
183 ffi::DRM_MODE_CONNECTOR_Component => Interface::Component, in from()
184 ffi::DRM_MODE_CONNECTOR_9PinDIN => Interface::NinePinDIN, in from()
185 ffi::DRM_MODE_CONNECTOR_DisplayPort => Interface::DisplayPort, in from()
186 ffi::DRM_MODE_CONNECTOR_HDMIA => Interface::HDMIA, in from()
187 ffi::DRM_MODE_CONNECTOR_HDMIB => Interface::HDMIB, in from()
188 ffi::DRM_MODE_CONNECTOR_TV => Interface::TV, in from()
189 ffi::DRM_MODE_CONNECTOR_eDP => Interface::EmbeddedDisplayPort, in from()
190 ffi::DRM_MODE_CONNECTOR_VIRTUAL => Interface::Virtual, in from()
191 ffi::DRM_MODE_CONNECTOR_DSI => Interface::DSI, in from()
192 ffi::DRM_MODE_CONNECTOR_DPI => Interface::DPI, in from()
193 ffi::DRM_MODE_CONNECTOR_WRITEBACK => Interface::Writeback, in from()
194 ffi::DRM_MODE_CONNECTOR_SPI => Interface::SPI, in from()
195 ffi::DRM_MODE_CONNECTOR_USB => Interface::USB, in from()
196 _ => Interface::Unknown, in from()
201 impl From<Interface> for u32 {
202 fn from(interface: Interface) -> Self { in from()
203 match interface { in from()
204 Interface::Unknown => ffi::DRM_MODE_CONNECTOR_Unknown, in from()
205 Interface::VGA => ffi::DRM_MODE_CONNECTOR_VGA, in from()
206 Interface::DVII => ffi::DRM_MODE_CONNECTOR_DVII, in from()
207 Interface::DVID => ffi::DRM_MODE_CONNECTOR_DVID, in from()
208 Interface::DVIA => ffi::DRM_MODE_CONNECTOR_DVIA, in from()
209 Interface::Composite => ffi::DRM_MODE_CONNECTOR_Composite, in from()
210 Interface::SVideo => ffi::DRM_MODE_CONNECTOR_SVIDEO, in from()
211 Interface::LVDS => ffi::DRM_MODE_CONNECTOR_LVDS, in from()
212 Interface::Component => ffi::DRM_MODE_CONNECTOR_Component, in from()
213 Interface::NinePinDIN => ffi::DRM_MODE_CONNECTOR_9PinDIN, in from()
214 Interface::DisplayPort => ffi::DRM_MODE_CONNECTOR_DisplayPort, in from()
215 Interface::HDMIA => ffi::DRM_MODE_CONNECTOR_HDMIA, in from()
216 Interface::HDMIB => ffi::DRM_MODE_CONNECTOR_HDMIB, in from()
217 Interface::TV => ffi::DRM_MODE_CONNECTOR_TV, in from()
218 Interface::EmbeddedDisplayPort => ffi::DRM_MODE_CONNECTOR_eDP, in from()
219 Interface::Virtual => ffi::DRM_MODE_CONNECTOR_VIRTUAL, in from()
220 Interface::DSI => ffi::DRM_MODE_CONNECTOR_DSI, in from()
221 Interface::DPI => ffi::DRM_MODE_CONNECTOR_DPI, in from()
222 Interface::Writeback => ffi::DRM_MODE_CONNECTOR_WRITEBACK, in from()
223 Interface::SPI => ffi::DRM_MODE_CONNECTOR_SPI, in from()
224 Interface::USB => ffi::DRM_MODE_CONNECTOR_USB, in from()