pub struct PreemptionConfig {
pub enabled: bool,
pub time_slice_us: u64,
pub priority_based: bool,
pub min_execution_time_us: u64,
}Expand description
Configuration for task preemption.
Fields§
§enabled: boolWhether to enable cooperative preemption
time_slice_us: u64Time slice for each task before preemption (microseconds)
priority_based: boolWhether to preempt based on priority
min_execution_time_us: u64Minimum execution time before preemption (microseconds)
Trait Implementations§
Source§impl Clone for PreemptionConfig
impl Clone for PreemptionConfig
Source§impl Debug for PreemptionConfig
impl Debug for PreemptionConfig
Auto Trait Implementations§
impl Freeze for PreemptionConfig
impl RefUnwindSafe for PreemptionConfig
impl Send for PreemptionConfig
impl Sync for PreemptionConfig
impl Unpin for PreemptionConfig
impl UnsafeUnpin for PreemptionConfig
impl UnwindSafe for PreemptionConfig
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