Enum MappedFrame
pub enum MappedFrame {
Size4KiB(PhysFrame),
Size2MiB(PhysFrame<Size2MiB>),
Size1GiB(PhysFrame<Size1GiB>),
}Expand description
Represents a physical frame mapped in a page table.
Variants§
Size4KiB(PhysFrame)
The virtual address is mapped to a 4KiB frame.
Size2MiB(PhysFrame<Size2MiB>)
The virtual address is mapped to a “large” 2MiB frame.
Size1GiB(PhysFrame<Size1GiB>)
The virtual address is mapped to a “huge” 1GiB frame.
Implementations§
§impl MappedFrame
impl MappedFrame
pub const fn start_address(&self) -> PhysAddr
pub const fn start_address(&self) -> PhysAddr
Returns the start address of the frame.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MappedFrame
impl RefUnwindSafe for MappedFrame
impl Send for MappedFrame
impl Sync for MappedFrame
impl Unpin for MappedFrame
impl UnsafeUnpin for MappedFrame
impl UnwindSafe for MappedFrame
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more