pub struct TaskSpec {
pub weight: f64,
pub estimate_ms: f64,
pub name: Option<String>,
}Expand description
Scheduling metadata for background tasks.
Fields§
§weight: f64Task weight (importance). Higher = more priority.
estimate_ms: f64Estimated task cost in milliseconds.
name: Option<String>Optional task name for evidence logging.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TaskSpec
impl RefUnwindSafe for TaskSpec
impl Send for TaskSpec
impl Sync for TaskSpec
impl Unpin for TaskSpec
impl UnwindSafe for TaskSpec
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