pub struct UnregisteredDevice<T: Driver>(/* private fields */);Expand description
A Device which is known at compile-time to be unregistered with userspace.
This type allows performing operations which are only safe to do before userspace registration,
and can be used to create a Registration once the driver is ready
to register the device with userspace.
Since DRM device initialization must be single-threaded, this object is not thread-safe.
§Invariants
The device in self.0 is guaranteed to be a newly created Device that has not yet been
registered with userspace until this type is dropped.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for UnregisteredDevice<T>
impl<T> !Send for UnregisteredDevice<T>
impl<T> !Sync for UnregisteredDevice<T>
impl<T> !UnwindSafe for UnregisteredDevice<T>
impl<T> Freeze for UnregisteredDevice<T>
impl<T> Unpin for UnregisteredDevice<T>
impl<T> UnsafeUnpin for UnregisteredDevice<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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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