pub struct Device<T: Driver> { /* private fields */ }Expand description
A typed DRM device with a specific drm::Driver implementation.
The device is always reference-counted.
§Invariants
self.dev is a valid instance of a struct device.
Implementations§
Trait Implementations§
Source§impl<T: Driver> AlwaysRefCounted for Device<T>
impl<T: Driver> AlwaysRefCounted for Device<T>
Source§impl<T, const ID: u64> HasWork<Device<T>, ID> for Device<T>
impl<T, const ID: u64> HasWork<Device<T>, ID> for Device<T>
Source§unsafe fn raw_get_work(ptr: *mut Self) -> *mut Work<Device<T>, ID>
unsafe fn raw_get_work(ptr: *mut Self) -> *mut Work<Device<T>, ID>
Returns a pointer to the
Work<T, ID> field. Read moreSource§unsafe fn work_container_of(ptr: *mut Work<Device<T>, ID>) -> *mut Self
unsafe fn work_container_of(ptr: *mut Work<Device<T>, ID>) -> *mut Self
Returns a pointer to the struct containing the
Work<T, ID> field. Read moreimpl<T, const ID: u64> HasDelayedWork<Device<T>, ID> for Device<T>
impl<T: Driver> Send for Device<T>
impl<T: Driver> Sync for Device<T>
Auto Trait Implementations§
impl<T> !Freeze for Device<T>
impl<T> !RefUnwindSafe for Device<T>
impl<T> !Unpin for Device<T>
impl<T> !UnsafeUnpin for Device<T>
impl<T> UnwindSafe for Device<T>
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> PinInit<T> for T
impl<T> PinInit<T> for T
Source§unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
Initializes
slot. Read more