pub struct MmioObject { /* private fields */ }
Expand description
A handle to an MMIO subobject.
Implementations§
source§impl MmioObject
impl MmioObject
sourcepub unsafe fn get_mmio_offset<T>(
&self,
offset: usize,
) -> VolatileRef<'_, T, ReadOnly>
pub unsafe fn get_mmio_offset<T>( &self, offset: usize, ) -> VolatileRef<'_, T, ReadOnly>
Get the base of the memory mapped IO region.
§Safety
The type this returns is not verified in any way, so the caller must ensure that T is the correct type for the underlying data.
sourcepub unsafe fn get_mmio_offset_mut<T>(
&self,
offset: usize,
) -> VolatileRef<'_, T, ReadWrite>
pub unsafe fn get_mmio_offset_mut<T>( &self, offset: usize, ) -> VolatileRef<'_, T, ReadWrite>
Get the base of the memory mapped IO region.
§Safety
The type this returns is not verified in any way, so the caller must ensure that T is the correct type for the underlying data.
Auto Trait Implementations§
impl !DeviceSync for MmioObject
impl Freeze for MmioObject
impl !ObjSafe for MmioObject
impl RefUnwindSafe for MmioObject
impl Send for MmioObject
impl Sync for MmioObject
impl Unpin for MmioObject
impl UnwindSafe for MmioObject
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