pub struct SGTableMap<T: DriverObject> { /* private fields */ }Expand description
A reference to a GEM object that is known to have a mapped SGTable.
This is used by the Rust bindings with Devres in order to ensure that mappings for SGTables
on GEM shmem objects are revoked on driver-unbind.
§Invariants
self.objalways points to a valid GEM object.- This object is proof that
self.obj.owner.sgt_reshas an initialized and valid pointer to anSGTable.
Methods from Deref<Target = SGTable>§
Sourcepub fn project<'__pin>(
self: Pin<&'__pin mut Self>,
) -> SGTableProjection<'__pin, T>
pub fn project<'__pin>( self: Pin<&'__pin mut Self>, ) -> SGTableProjection<'__pin, T>
Pin-projects all fields of Self.
These fields are structurally pinned:
inner
These fields are not structurally pinned:
Sourcepub fn iter(&self) -> SGTableIter<'_> ⓘ
pub fn iter(&self) -> SGTableIter<'_> ⓘ
Returns an SGTableIter bound to the lifetime of self.
Trait Implementations§
Source§impl<T: DriverObject> Deref for SGTableMap<T>
impl<T: DriverObject> Deref for SGTableMap<T>
Source§impl<T: DriverObject> Drop for SGTableMap<T>
impl<T: DriverObject> Drop for SGTableMap<T>
impl<T: DriverObject> Send for SGTableMap<T>
impl<T: DriverObject> Sync for SGTableMap<T>
Auto Trait Implementations§
impl<T> !RefUnwindSafe for SGTableMap<T>
impl<T> !UnwindSafe for SGTableMap<T>
impl<T> Freeze for SGTableMap<T>
impl<T> Unpin for SGTableMap<T>
impl<T> UnsafeUnpin for SGTableMap<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> 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