Struct os::loader::KernelStack
source · #[repr(align(4096))]struct KernelStack {
data: [u8; 8192],
}
Fields§
§data: [u8; 8192]
Implementations§
source§impl KernelStack
impl KernelStack
fn get_sp(&self) -> usize
pub fn push_context(&self, trap_cx: TrapContext) -> usize
Trait Implementations§
source§impl Clone for KernelStack
impl Clone for KernelStack
source§fn clone(&self) -> KernelStack
fn clone(&self) -> KernelStack
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for KernelStack
Auto Trait Implementations§
impl Freeze for KernelStack
impl RefUnwindSafe for KernelStack
impl Send for KernelStack
impl Sync for KernelStack
impl Unpin for KernelStack
impl UnwindSafe for KernelStack
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