#[repr(C)]pub struct ModeDeadline {
pub sc: u8,
pub deadline_us: u32,
}Expand description
phase-462 W4c – one SchedContext’s deadline in one mode.
The deadline is the one tier fact a switch can apply: the executor reads
SchedContext::deadline_us each time it judges a dispatch. A priority is a
thread’s and a reservation is armed at boot, so the bake lists a mode that
moves either instead of baking it.
repr(C): the C ABI’s nros_cpp_mode_deadline_t is the same two fields.
Fields§
§sc: u8The SchedContext’s id on this executor.
deadline_us: u32The deadline in this mode, µs; 0 = none.
Trait Implementations§
Source§impl Clone for ModeDeadline
impl Clone for ModeDeadline
Source§fn clone(&self) -> ModeDeadline
fn clone(&self) -> ModeDeadline
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 ModeDeadline
Source§impl Debug for ModeDeadline
impl Debug for ModeDeadline
impl Eq for ModeDeadline
Source§impl PartialEq for ModeDeadline
impl PartialEq for ModeDeadline
impl StructuralPartialEq for ModeDeadline
Auto Trait Implementations§
impl Freeze for ModeDeadline
impl RefUnwindSafe for ModeDeadline
impl Send for ModeDeadline
impl Sync for ModeDeadline
impl Unpin for ModeDeadline
impl UnsafeUnpin for ModeDeadline
impl UnwindSafe for ModeDeadline
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