#[repr(C)]pub struct Object<T: DriverObject + Send + Sync> { /* private fields */ }Expand description
Implementations§
source§impl<T: DriverObject + Send + Sync> Object<T>
impl<T: DriverObject + Send + Sync> Object<T>
sourcepub fn project<'__pin>(
self: Pin<&'__pin mut Self>
) -> ObjectProjection<'__pin, T>
pub fn project<'__pin>( self: Pin<&'__pin mut Self> ) -> ObjectProjection<'__pin, T>
Pin-projects all fields of Self.
These fields are structurally pinned:
data
These fields are not structurally pinned:
obj
Trait Implementations§
source§impl<T: DriverObject> AllocImpl for Object<T>
impl<T: DriverObject> AllocImpl for Object<T>
source§impl<T: DriverObject> AlwaysRefCounted for Object<T>
impl<T: DriverObject> AlwaysRefCounted for Object<T>
source§impl<T: DriverObject> Deref for Object<T>
impl<T: DriverObject> Deref for Object<T>
source§impl<T: DriverObject + Send + Sync> HasPinData for Object<T>
impl<T: DriverObject + Send + Sync> HasPinData for Object<T>
type PinData = __ThePinData<T>
unsafe fn __pin_data() -> Self::PinData
source§impl<T: DriverObject> IntoGEMObject for Object<T>
impl<T: DriverObject> IntoGEMObject for Object<T>
Auto Trait Implementations§
impl<T> !Freeze for Object<T>
impl<T> !RefUnwindSafe for Object<T>
impl<T> !Send for Object<T>
impl<T> !Sync for Object<T>
impl<T> UnwindSafe for Object<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BaseObject for Twhere
T: IntoGEMObject,
impl<T> BaseObject for Twhere
T: IntoGEMObject,
source§fn create_handle<D, F>(&self, file: &File<F>) -> Result<u32>
fn create_handle<D, F>(&self, file: &File<F>) -> Result<u32>
Creates a new handle for the object associated with a given
File
(or returns an existing one).source§fn lookup_handle<D, F>(file: &File<F>, handle: u32) -> Result<ARef<Self>>
fn lookup_handle<D, F>(file: &File<F>, handle: u32) -> Result<ARef<Self>>
Looks up an object by its handle for a given
File.source§fn create_mmap_offset(&self) -> Result<u64>
fn create_mmap_offset(&self) -> Result<u64>
Creates an mmap offset to map the object from userspace.
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