pub struct DashboardService { /* private fields */ }
Implementations§
Source§impl DashboardService
impl DashboardService
pub fn new(storage: Arc<dyn Storage>) -> Self
Sourcepub async fn get_job_statistics(&self) -> Result<JobStatistics, QmlError>
pub async fn get_job_statistics(&self) -> Result<JobStatistics, QmlError>
Get overall job statistics across all queues
Sourcepub async fn get_queue_statistics(
&self,
) -> Result<Vec<QueueStatistics>, QmlError>
pub async fn get_queue_statistics( &self, ) -> Result<Vec<QueueStatistics>, QmlError>
Get statistics for each queue
Sourcepub async fn get_recent_jobs(
&self,
limit: Option<usize>,
) -> Result<Vec<JobDetails>, QmlError>
pub async fn get_recent_jobs( &self, limit: Option<usize>, ) -> Result<Vec<JobDetails>, QmlError>
Get recent jobs (limited sample)
Sourcepub async fn get_jobs_by_state(
&self,
state: JobState,
) -> Result<Vec<JobDetails>, QmlError>
pub async fn get_jobs_by_state( &self, state: JobState, ) -> Result<Vec<JobDetails>, QmlError>
Get jobs by state (limited sample)
Sourcepub async fn get_job_details(
&self,
job_id: &str,
) -> Result<Option<JobDetails>, QmlError>
pub async fn get_job_details( &self, job_id: &str, ) -> Result<Option<JobDetails>, QmlError>
Get detailed job information by ID
Sourcepub async fn retry_job(&self, job_id: &str) -> Result<bool, QmlError>
pub async fn retry_job(&self, job_id: &str) -> Result<bool, QmlError>
Retry a failed job (simplified)
Sourcepub async fn delete_job(&self, job_id: &str) -> Result<bool, QmlError>
pub async fn delete_job(&self, job_id: &str) -> Result<bool, QmlError>
Delete a job (simplified)
Sourcepub async fn get_server_statistics(&self) -> Result<ServerStatistics, QmlError>
pub async fn get_server_statistics(&self) -> Result<ServerStatistics, QmlError>
Get comprehensive server statistics
Auto Trait Implementations§
impl Freeze for DashboardService
impl !RefUnwindSafe for DashboardService
impl Send for DashboardService
impl Sync for DashboardService
impl Unpin for DashboardService
impl !UnwindSafe for DashboardService
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