pub struct RuntimeSchedulerFrameEnterResult { /* private fields */ }Expand description
Atomic runtime result of claiming one scheduler frame.
A successful result carries every immutable capability selected under the
same IRQ-off CPU pin: task system and owner CPU endpoints. Current-thread
identity is read only by operations that need it, while this frame keeps
the execution context pinned; scheduler selection itself uses rq->curr.
Implementations§
Source§impl RuntimeSchedulerFrameEnterResult
impl RuntimeSchedulerFrameEnterResult
Sourcepub const unsafe fn success(
system: TaskSystemHandle,
cpu: CurrentCpuOwnerHandles,
) -> Self
pub const unsafe fn success( system: TaskSystemHandle, cpu: CurrentCpuOwnerHandles, ) -> Self
Creates a successful scheduler-frame capability snapshot.
§Safety
system must be non-empty. All handles must describe the CPU pinned by
the scheduler baton that was claimed in the same runtime transaction.
Sourcepub const fn status(self) -> RuntimeStatus
pub const fn status(self) -> RuntimeStatus
Returns the runtime entry status.
Sourcepub const fn system(self) -> TaskSystemHandle
pub const fn system(self) -> TaskSystemHandle
Returns the pinned task-system capability.
Sourcepub const fn cpu(self) -> CurrentCpuOwnerHandles
pub const fn cpu(self) -> CurrentCpuOwnerHandles
Returns the pinned owner-CPU capability.
Trait Implementations§
Source§impl Clone for RuntimeSchedulerFrameEnterResult
impl Clone for RuntimeSchedulerFrameEnterResult
Source§fn clone(&self) -> RuntimeSchedulerFrameEnterResult
fn clone(&self) -> RuntimeSchedulerFrameEnterResult
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 RuntimeSchedulerFrameEnterResult
impl Eq for RuntimeSchedulerFrameEnterResult
impl StructuralPartialEq for RuntimeSchedulerFrameEnterResult
Auto Trait Implementations§
impl Freeze for RuntimeSchedulerFrameEnterResult
impl RefUnwindSafe for RuntimeSchedulerFrameEnterResult
impl Send for RuntimeSchedulerFrameEnterResult
impl Sync for RuntimeSchedulerFrameEnterResult
impl Unpin for RuntimeSchedulerFrameEnterResult
impl UnsafeUnpin for RuntimeSchedulerFrameEnterResult
impl UnwindSafe for RuntimeSchedulerFrameEnterResult
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