pub struct ExclusiveIoMem<'a, const SIZE: usize> { /* private fields */ }Expand description
An exclusive memory-mapped IO region.
§Invariants
ExclusiveIoMemhas exclusive access to the underlyingIoMem.
Implementations§
Source§impl<'a, const SIZE: usize> ExclusiveIoMem<'a, SIZE>
impl<'a, const SIZE: usize> ExclusiveIoMem<'a, SIZE>
Sourcepub fn into_devres(self) -> Result<DevresExclusiveIoMem<SIZE>>
pub fn into_devres(self) -> Result<DevresExclusiveIoMem<SIZE>>
Consume the ExclusiveIoMem and register it as a device-managed resource.
The returned DevresExclusiveIoMem can outlive the original borrow and be stored in
driver data. Access to the I/O memory is revoked automatically when the device is unbound.
Trait Implementations§
Source§impl<const SIZE: usize> CovariantForLt for ExclusiveIoMem<'static, SIZE>
impl<const SIZE: usize> CovariantForLt for ExclusiveIoMem<'static, SIZE>
Source§impl<const SIZE: usize> ForLt for ExclusiveIoMem<'static, SIZE>
impl<const SIZE: usize> ForLt for ExclusiveIoMem<'static, SIZE>
Source§type Of<'a> = ExclusiveIoMem<'a, SIZE>
type Of<'a> = ExclusiveIoMem<'a, SIZE>
The type parameterized by the lifetime.
Source§impl<'a, const SIZE: usize> IoBase<'a> for &'a ExclusiveIoMem<'_, SIZE>
impl<'a, const SIZE: usize> IoBase<'a> for &'a ExclusiveIoMem<'_, SIZE>
Auto Trait Implementations§
impl<'a, const SIZE: usize> !RefUnwindSafe for ExclusiveIoMem<'a, SIZE>
impl<'a, const SIZE: usize> !UnwindSafe for ExclusiveIoMem<'a, SIZE>
impl<'a, const SIZE: usize> Freeze for ExclusiveIoMem<'a, SIZE>
impl<'a, const SIZE: usize> Send for ExclusiveIoMem<'a, SIZE>
impl<'a, const SIZE: usize> Sync for ExclusiveIoMem<'a, SIZE>
impl<'a, const SIZE: usize> Unpin for ExclusiveIoMem<'a, SIZE>
impl<'a, const SIZE: usize> UnsafeUnpin for ExclusiveIoMem<'a, SIZE>
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