pub struct Registered;Expand description
The DeviceContext of a Device that is currently registered with userspace.
A Device in this context is guaranteed to be registered and its parent bus device is
guaranteed to be bound. This is enforced at runtime by RegistrationGuard, which holds a
drm_dev_enter() / drm_dev_exit() SRCU critical section.
§Invariants
The parent bus device is bound for the duration of any reference to a Device<T, Registered>.
Trait Implementations§
impl DeviceContext for Registered
Auto Trait Implementations§
impl Freeze for Registered
impl RefUnwindSafe for Registered
impl Send for Registered
impl Sync for Registered
impl Unpin for Registered
impl UnsafeUnpin for Registered
impl UnwindSafe for Registered
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> KnownSize for T
impl<T> KnownSize for T
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