#[repr(u32)]pub enum RuntimeSchedulerReturn {
Task = 0,
IrqReturn = 1,
}Expand description
Raw IRQ state expected by the suspended scheduler continuation.
This is continuation-local rather than CPU-local: a context resumed by an IRQ-return schedule may itself have been suspended in an ordinary task schedule, and vice versa.
Variants§
Task = 0
Resume ordinary task context with local IRQs enabled.
IrqReturn = 1
Resume the architecture trap epilogue with local IRQs disabled.
Trait Implementations§
Source§impl Clone for RuntimeSchedulerReturn
impl Clone for RuntimeSchedulerReturn
Source§fn clone(&self) -> RuntimeSchedulerReturn
fn clone(&self) -> RuntimeSchedulerReturn
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RuntimeSchedulerReturn
Source§impl Debug for RuntimeSchedulerReturn
impl Debug for RuntimeSchedulerReturn
impl Eq for RuntimeSchedulerReturn
Source§impl PartialEq for RuntimeSchedulerReturn
impl PartialEq for RuntimeSchedulerReturn
impl StructuralPartialEq for RuntimeSchedulerReturn
Auto Trait Implementations§
impl Freeze for RuntimeSchedulerReturn
impl RefUnwindSafe for RuntimeSchedulerReturn
impl Send for RuntimeSchedulerReturn
impl Sync for RuntimeSchedulerReturn
impl Unpin for RuntimeSchedulerReturn
impl UnsafeUnpin for RuntimeSchedulerReturn
impl UnwindSafe for RuntimeSchedulerReturn
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