pub struct Size4Kb;
Trait Implementations§
source§impl<A> Map<Size4Kb, A> for PageCtrlwhere
A: Alloc<Size4Kb>,
impl<A> Map<Size4Kb, A> for PageCtrlwhere
A: Alloc<Size4Kb>,
source§unsafe fn unmap(&mut self, _virt: Page<VAddr, Size4Kb>) -> Page<PAddr, Size4Kb>
unsafe fn unmap(&mut self, _virt: Page<VAddr, Size4Kb>) -> Page<PAddr, Size4Kb>
Safety
Unmapping a page can break pretty much everything.
type Entry = Entry<Pt>
source§unsafe fn map_page(
&mut self,
virt: Page<VAddr, Size4Kb>,
phys: Page<PAddr, Size4Kb>,
frame_alloc: &mut A
) -> Handle<'_, Size4Kb, <PageCtrl as Map<Size4Kb, A>>::Entry>
unsafe fn map_page(
&mut self,
virt: Page<VAddr, Size4Kb>,
phys: Page<PAddr, Size4Kb>,
frame_alloc: &mut A
) -> Handle<'_, Size4Kb, <PageCtrl as Map<Size4Kb, A>>::Entry>
fn flags_mut(
&mut self,
_virt: Page<VAddr, Size4Kb>
) -> Handle<'_, Size4Kb, <PageCtrl as Map<Size4Kb, A>>::Entry>
source§fn identity_map(
&mut self,
phys: Page<PAddr, S>,
frame_alloc: &mut A
) -> Handle<'_, S, Self::Entry>
fn identity_map(
&mut self,
phys: Page<PAddr, S>,
frame_alloc: &mut A
) -> Handle<'_, S, Self::Entry>
Identity map the provided physical page to the virtual page with the
same address. Read more
source§unsafe fn map_range<F>(
&mut self,
virt: PageRange<VAddr, S>,
phys: PageRange<PAddr, S>,
set_flags: F,
frame_alloc: &mut A
) -> PageRange<VAddr, S>where
F: FnMut(&mut Handle<'_, S, Self::Entry>),
unsafe fn map_range<F>(
&mut self,
virt: PageRange<VAddr, S>,
phys: PageRange<PAddr, S>,
set_flags: F,
frame_alloc: &mut A
) -> PageRange<VAddr, S>where
F: FnMut(&mut Handle<'_, S, Self::Entry>),
Map the range of virtual memory pages represented by
virt
to the range
of physical pages represented by phys
. Read moresource§impl StaticSize for Size4Kb
impl StaticSize for Size4Kb
impl Copy for Size4Kb
impl Eq for Size4Kb
impl HoldsSize<Size4Kb> for Pd
impl HoldsSize<Size4Kb> for Pdpt
impl HoldsSize<Size4Kb> for Pml4
impl HoldsSize<Size4Kb> for Pt
impl StructuralEq for Size4Kb
impl StructuralPartialEq for Size4Kb
Auto Trait Implementations§
impl RefUnwindSafe for Size4Kb
impl Send for Size4Kb
impl Sync for Size4Kb
impl Unpin for Size4Kb
impl UnwindSafe for Size4Kb
Blanket Implementations§
source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read moresource§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
source§impl<S> Size for Swhere
S: StaticSize,
impl<S> Size for Swhere
S: StaticSize,
source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.