pub struct Info { /* private fields */ }
Expand description
Information about a connector
Implementations§
source§impl Info
impl Info
sourcepub fn interface_id(&self) -> u32
pub fn interface_id(&self) -> u32
Returns the interface ID of this connector.
When multiple connectors have the same Interface
, they will have
different interface IDs.
sourcepub fn size(&self) -> Option<(u32, u32)>
pub fn size(&self) -> Option<(u32, u32)>
Returns the size of the display (in millimeters) if connected.
sourcepub fn encoders(&self) -> &[Handle]
pub fn encoders(&self) -> &[Handle]
Returns a list of encoders that can be possibly used by this connector.
sourcepub fn current_encoder(&self) -> Option<Handle>
pub fn current_encoder(&self) -> Option<Handle>
Returns the current encoder attached to this connector.
Trait Implementations§
impl Eq for Info
impl StructuralPartialEq for Info
Auto Trait Implementations§
impl Freeze for Info
impl RefUnwindSafe for Info
impl Send for Info
impl Sync for Info
impl Unpin for Info
impl UnwindSafe for Info
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)