pub struct SchedulerStatus {
pub queued_tasks: usize,
pub running_tasks: usize,
pub completed_tasks: u64,
pub failed_tasks: u64,
pub cancelled_tasks: u64,
pub health: SchedulerHealth,
pub performance: SchedulerPerformanceMetrics,
pub queue_stats: HashMap<TaskPriority, QueueStatistics>,
pub resource_utilization: f64,
}Expand description
Current scheduler status and metrics
Fields§
§queued_tasks: usizeNumber of tasks currently queued
running_tasks: usizeNumber of tasks currently running
completed_tasks: u64Total number of completed tasks
failed_tasks: u64Total number of failed tasks
cancelled_tasks: u64Total number of cancelled tasks
health: SchedulerHealthCurrent scheduler health status
performance: SchedulerPerformanceMetricsPerformance metrics
queue_stats: HashMap<TaskPriority, QueueStatistics>Queue statistics by priority
resource_utilization: f64Resource utilization
Trait Implementations§
Source§impl Clone for SchedulerStatus
impl Clone for SchedulerStatus
Source§fn clone(&self) -> SchedulerStatus
fn clone(&self) -> SchedulerStatus
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SchedulerStatus
impl RefUnwindSafe for SchedulerStatus
impl Send for SchedulerStatus
impl Sync for SchedulerStatus
impl Unpin for SchedulerStatus
impl UnwindSafe for SchedulerStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more