pub struct NoOpArch;
Expand description
A no-op architecture implementation for testing and fallback purposes.
This implementation provides stub functionality and should not be used in production code where real context switching is required.
Trait Implementations§
Source§impl Arch for NoOpArch
impl Arch for NoOpArch
Source§type SavedContext = ()
type SavedContext = ()
Architecture-specific saved context type. Read more
Source§unsafe fn context_switch(
_prev: *mut Self::SavedContext,
_next: *const Self::SavedContext,
)
unsafe fn context_switch( _prev: *mut Self::SavedContext, _next: *const Self::SavedContext, )
Switch from one thread context to another. Read more
Source§fn enable_interrupts()
fn enable_interrupts()
Enable interrupts on the current CPU. Read more
Source§fn disable_interrupts()
fn disable_interrupts()
Disable interrupts on the current CPU. Read more
Source§fn interrupts_enabled() -> bool
fn interrupts_enabled() -> bool
Check if interrupts are currently enabled. Read more
Auto Trait Implementations§
impl Freeze for NoOpArch
impl RefUnwindSafe for NoOpArch
impl Send for NoOpArch
impl Sync for NoOpArch
impl Unpin for NoOpArch
impl UnwindSafe for NoOpArch
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