pub struct GemHandle<'a> {
pub handle: DrmGemHandle,
pub node: &'a DrmDeviceNode,
}
Fields§
§handle: DrmGemHandle
§node: &'a DrmDeviceNode
Implementations§
source§impl GemHandle<'_>
impl GemHandle<'_>
An owned GEM handle that will be closed when dropped
pub fn new(node: &DrmDeviceNode, size: u64) -> Option<GemHandle<'_>>
pub fn from_handle( node: &DrmDeviceNode, handle: DrmGemHandle, ) -> Result<GemHandle<'_>, GemIoctlError>
pub fn close(&mut self) -> Result<(), i32>
pub fn has_tiling(&self) -> Result<bool, GemIoctlError>
pub fn is_valid(&self) -> Result<bool, GemIoctlError>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for GemHandle<'a>
impl<'a> RefUnwindSafe for GemHandle<'a>
impl<'a> Send for GemHandle<'a>
impl<'a> Sync for GemHandle<'a>
impl<'a> Unpin for GemHandle<'a>
impl<'a> UnwindSafe for GemHandle<'a>
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