#[repr(C)]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>
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> 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