pub struct ProtectedRegion<T> { /* private fields */ }Expand description
Protected memory page with typed access to its data
Implementations§
Source§impl<T> ProtectedRegion<T>
impl<T> ProtectedRegion<T>
Sourcepub fn lock(&self) -> ProtectedRegionGuard<'_, T>
pub fn lock(&self) -> ProtectedRegionGuard<'_, T>
Creates region guard with read-only access to the data
Trait Implementations§
Source§impl<T> Drop for ProtectedRegion<T>
impl<T> Drop for ProtectedRegion<T>
impl<T> Send for ProtectedRegion<T>
impl<T: Sync> Sync for ProtectedRegion<T>
Auto Trait Implementations§
impl<T> Freeze for ProtectedRegion<T>
impl<T> RefUnwindSafe for ProtectedRegion<T>where
T: RefUnwindSafe,
impl<T> Unpin for ProtectedRegion<T>where
T: Unpin,
impl<T> UnwindSafe for ProtectedRegion<T>where
T: UnwindSafe,
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