pub struct MasterRef<'a, T>(/* private fields */)
where
T: 'a + Device;
Expand description
A simple handle to the DRM Master lock. This can be generated by any object that implements the UnprivilegedDevice trait.
Trait Implementations§
Source§impl<'a, T> Control for MasterRef<'a, T>where
T: 'a + Device,
impl<'a, T> Control for MasterRef<'a, T>where
T: 'a + Device,
Source§fn resource_ids(&self) -> Result<ResourceIds>
fn resource_ids(&self) -> Result<ResourceIds>
Attempts to read the list of all resource ids.
Source§fn plane_ids(&self) -> Result<PlaneResourceIds>
fn plane_ids(&self) -> Result<PlaneResourceIds>
Attempts to read the list of all plane ids.
Source§fn connector(&self, id: ConnectorId) -> Result<ConnectorInfo>
fn connector(&self, id: ConnectorId) -> Result<ConnectorInfo>
Attempts to get a connector given its id.
Source§fn encoder(&self, id: EncoderId) -> Result<EncoderInfo>
fn encoder(&self, id: EncoderId) -> Result<EncoderInfo>
Attempts to get an encoder given its id.
Source§fn framebuffer(&self, id: FramebufferId) -> Result<FramebufferInfo>
fn framebuffer(&self, id: FramebufferId) -> Result<FramebufferInfo>
Attempts to get a framebuffer given its id.
Source§fn create_framebuffer<T>(&self, buffer: &T) -> Result<FramebufferId>where
T: Buffer,
fn create_framebuffer<T>(&self, buffer: &T) -> Result<FramebufferId>where
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>>
fn properties<T>(&self, resource: T) -> Result<ResourcePropertyHandles>where
T: ResourceId,
fn resource_property( &self, handle: PropertyHandle, ) -> Result<ResourcePropertyInfo>
fn proberty_blob(&self)
fn create_property_blob(&self)
fn removeproperty_blob(&self)
Source§impl<'a, T> Device for MasterRef<'a, T>where
T: 'a + Device,
impl<'a, T> Device for MasterRef<'a, T>where
T: 'a + Device,
Source§fn magic(&self) -> Result<AuthToken>
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.
fn stats(&self) -> Result<()>
Source§fn set_client_cap(&self, cap: ClientCapability, set: bool) -> 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.
fn wait_vblan(&self)
Source§impl<'a, T> MasterControl for MasterRef<'a, T>where
T: 'a + Device,
impl<'a, T> MasterControl for MasterRef<'a, T>where
T: 'a + Device,
Source§impl<'a, T> MasterDevice for MasterRef<'a, T>where
T: 'a + Device,
impl<'a, T> MasterDevice for MasterRef<'a, T>where
T: 'a + Device,
fn drop_master(&self) -> Result<()>
Auto Trait Implementations§
impl<'a, T> Freeze for MasterRef<'a, T>
impl<'a, T> RefUnwindSafe for MasterRef<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for MasterRef<'a, T>where
T: Sync,
impl<'a, T> Sync for MasterRef<'a, T>where
T: Sync,
impl<'a, T> Unpin for MasterRef<'a, T>
impl<'a, T> UnwindSafe for MasterRef<'a, T>where
T: RefUnwindSafe,
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