#[repr(C)]pub struct drmtap_device {
pub path: [c_char; 64],
pub render_node: [c_char; 64],
pub driver: [c_char; 32],
pub display_count: u32,
}Expand description
A capturable DRM device, as reported by drmtap_list_devices. Layout is
frozen: it is written into caller-owned storage, so a future addition must
come as a new accessor rather than a new field here.
Fields§
§path: [c_char; 64]KMS card node, e.g. /dev/dri/card1
render_node: [c_char; 64]Render node, or an empty string if the device has none
driver: [c_char; 32]Kernel driver, e.g. i915, nvidia-drm
display_count: u32CRTCs actively scanning out on this device
Trait Implementations§
Source§impl Clone for drmtap_device
impl Clone for drmtap_device
Source§fn clone(&self) -> drmtap_device
fn clone(&self) -> drmtap_device
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for drmtap_device
Auto Trait Implementations§
impl Freeze for drmtap_device
impl RefUnwindSafe for drmtap_device
impl Send for drmtap_device
impl Sync for drmtap_device
impl Unpin for drmtap_device
impl UnsafeUnpin for drmtap_device
impl UnwindSafe for drmtap_device
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