pub struct Size4K;Expand description
4 KiB page (4096 bytes).
Trait Implementations§
Source§impl MapSize for Size4K
 
impl MapSize for Size4K
Source§fn ensure_chain_for<A: FrameAlloc, M: PhysMapper>(
    aspace: &AddressSpace<'_, M>,
    alloc: &mut A,
    va: VirtualAddress,
    nonleaf_flags: VirtualMemoryPageBits,
) -> Result<PhysicalPage<Size4K>, MapSizeEnsureChainError>
 
fn ensure_chain_for<A: FrameAlloc, M: PhysMapper>( aspace: &AddressSpace<'_, M>, alloc: &mut A, va: VirtualAddress, nonleaf_flags: VirtualMemoryPageBits, ) -> Result<PhysicalPage<Size4K>, MapSizeEnsureChainError>
Ensure that the non-leaf chain for 
va exists down to the table that
holds the leaf for Self, allocating and linking intermediate
tables as needed. Read moreSource§fn set_leaf<M: PhysMapper>(
    aspace: &AddressSpace<'_, M>,
    leaf_tbl_page: PhysicalPage<Size4K>,
    va: VirtualAddress,
    pa: PhysicalAddress,
    leaf_flags: VirtualMemoryPageBits,
)
 
fn set_leaf<M: PhysMapper>( aspace: &AddressSpace<'_, M>, leaf_tbl_page: PhysicalPage<Size4K>, va: VirtualAddress, pa: PhysicalAddress, leaf_flags: VirtualMemoryPageBits, )
Install the leaf entry for 
va → pa in the leaf_tbl_page
returned by ensure_chain_for, with the given leaf_flags. Read moreSource§impl Ord for Size4K
 
impl Ord for Size4K
Source§impl PartialOrd for Size4K
 
impl PartialOrd for Size4K
impl Copy for Size4K
impl Eq for Size4K
impl Sealed for Size4K
impl StructuralPartialEq for Size4K
Auto Trait Implementations§
impl Freeze for Size4K
impl RefUnwindSafe for Size4K
impl Send for Size4K
impl Sync for Size4K
impl Unpin for Size4K
impl UnwindSafe for Size4K
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