#[repr(C)]pub struct MapConfig {
pub vaddr: *const u8,
pub paddr: usize,
pub setting: PTESetting,
}
Fields§
§vaddr: *const u8
§paddr: usize
§setting: PTESetting
Implementations§
Source§impl MapConfig
impl MapConfig
pub fn new( vaddr: *const u8, paddr: usize, privilege_access: AccessSetting, cache_setting: CacheSetting, ) -> Self
pub fn set_user_access(&mut self, access: AccessSetting) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MapConfig
impl RefUnwindSafe for MapConfig
impl !Send for MapConfig
impl !Sync for MapConfig
impl Unpin for MapConfig
impl UnwindSafe for MapConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)