pub struct AddressSpace {
begin: PhysAddr,
end: PhysAddr,
allocator: BestFitAllocator,
}Fields§
§begin: PhysAddr§end: PhysAddr§allocator: BestFitAllocatorTrait Implementations§
Source§impl AddressSpacelike for AddressSpace
impl AddressSpacelike for AddressSpace
fn new(pgs: usize) -> Result<Self, Error>
fn map(&mut self, region: Region) -> Result<PhysAddr, Error>
fn unmap(&mut self, region: &Region) -> Result<(), Error>
fn protect(&mut self, _region: &Region, _perms: Perms) -> Result<(), Error>
fn phys_to_virt(&self, addr: PhysAddr) -> Option<VirtAddr>
fn virt_to_phys(&self, addr: VirtAddr) -> Option<PhysAddr>
fn end(&self) -> VirtAddr
fn activate(&self) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for AddressSpace
impl RefUnwindSafe for AddressSpace
impl Send for AddressSpace
impl Sync for AddressSpace
impl Unpin for AddressSpace
impl UnsafeUnpin for AddressSpace
impl UnwindSafe for AddressSpace
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