pub struct VmRegionTable { /* private fields */ }Implementations§
Source§impl VmRegionTable
impl VmRegionTable
pub const fn new() -> Self
pub fn insert(&mut self, region: VmRegion) -> Result<(), &'static str>
pub fn find(&self, addr: VirtAddr) -> Option<&VmRegion>
pub fn find_mut(&mut self, addr: VirtAddr) -> Option<&mut VmRegion>
pub fn remove(&mut self, start: VirtAddr) -> Option<VmRegion>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn commit_page(&mut self, addr: VirtAddr) -> Result<bool, &'static str>
pub fn grow_stack_for_fault( &mut self, fault_addr: VirtAddr, ) -> Result<bool, &'static str>
Trait Implementations§
Source§impl Clone for VmRegionTable
impl Clone for VmRegionTable
Source§fn clone(&self) -> VmRegionTable
fn clone(&self) -> VmRegionTable
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VmRegionTable
impl Debug for VmRegionTable
Auto Trait Implementations§
impl Freeze for VmRegionTable
impl RefUnwindSafe for VmRegionTable
impl Send for VmRegionTable
impl Sync for VmRegionTable
impl Unpin for VmRegionTable
impl UnsafeUnpin for VmRegionTable
impl UnwindSafe for VmRegionTable
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