Struct libdrm::MasterRef
[−]
[src]
pub struct MasterRef<'a, T>(_)
where
T: 'a + Device;
A simple handle to the DRM Master lock. This can be generated by any object that implements the UnprivilegedDevice trait.
Trait Implementations
impl<'a, T: Debug> Debug for MasterRef<'a, T> where
T: 'a + Device,
[src]
T: 'a + Device,
impl<'a, T> AsRawFd for MasterRef<'a, T> where
T: 'a + Device,
[src]
T: 'a + Device,
impl<'a, T> Device for MasterRef<'a, T> where
T: 'a + Device,
[src]
T: 'a + Device,
fn magic(&self) -> Result<AuthToken>
Generates and returns a magic token unique to the current process. This token can be used to authenticate with the DRM Master. Read more
fn stats(&self) -> Result<()>
fn set_client_cap(&self, cap: ClientCapability, set: bool) -> Result<()>
Tells the DRM device whether we understand or do not understand a particular capability. Some features, such as atomic modesetting, require informing the device that the process can use such features before it will expose them. Read more
fn wait_vblan(&self)
impl<'a, T> MasterDevice for MasterRef<'a, T> where
T: 'a + Device,
[src]
T: 'a + Device,
fn drop_master(&self) -> Result<()>
impl<'a, T> Control for MasterRef<'a, T> where
T: 'a + Device,
[src]
T: 'a + Device,
fn resource_ids(&self) -> Result<ResourceIds>
Attempts to read the list of all resource ids.
fn plane_ids(&self) -> Result<PlaneResourceIds>
Attempts to read the list of all plane ids.
fn connector(&self, id: ConnectorId) -> Result<ConnectorInfo>
Attempts to get a connector given its id.
fn encoder(&self, id: EncoderId) -> Result<EncoderInfo>
Attempts to get an encoder given its id.
fn crtc(&self, id: CrtcId) -> Result<CrtcInfo>
Attempts to get a crtc given its id.
fn framebuffer(&self, id: FramebufferId) -> Result<FramebufferInfo>
Attempts to get a framebuffer given its id.
fn plane(&self, id: PlaneId) -> Result<PlaneInfo>
Attempts to get a plane given its id.
fn create_framebuffer<T>(&self, buffer: &T) -> Result<FramebufferId> where
T: Buffer,
T: Buffer,
Attempts to get a Crtc's Gamma Lookup Table (LUT) given its CrtcId.
fn add_framebuffer2(&self)
fn remove_framebuffer(&self, id: FramebufferId) -> Result<()>
fn dumbbuffer<'a>(
&'a self,
size: (u16, u16),
bpp: u8
) -> Result<DumbBuffer<'a, Self>>
&'a self,
size: (u16, u16),
bpp: u8
) -> Result<DumbBuffer<'a, Self>>
fn properties<T>(&self, resource: T) -> Result<ResourcePropertyHandles> where
T: ResourceId,
T: ResourceId,
fn resource_property(
&self,
handle: PropertyHandle
) -> Result<ResourcePropertyInfo>
&self,
handle: PropertyHandle
) -> Result<ResourcePropertyInfo>
fn proberty_blob(&self)
fn create_property_blob(&self)
fn removeproperty_blob(&self)
impl<'a, T> MasterControl for MasterRef<'a, T> where
T: 'a + Device,
[src]
T: 'a + Device,