pub struct DetectionScheduler { /* private fields */ }Expand description
Scheduler for coordinating detection tasks Uses a simple priority queue instead of nanosecond-scheduler
Implementations§
Source§impl DetectionScheduler
impl DetectionScheduler
Sourcepub async fn schedule_detection(&self, task_id: Uuid) -> Result<()>
pub async fn schedule_detection(&self, task_id: Uuid) -> Result<()>
Schedule a detection task with priority
Sourcepub async fn prioritize_threat(
&self,
severity: ThreatSeverity,
) -> Result<ThreatPriority>
pub async fn prioritize_threat( &self, severity: ThreatSeverity, ) -> Result<ThreatPriority>
Prioritize a threat based on severity (nanosecond-level operation)
Sourcepub async fn schedule_immediate(&self, task_id: &str) -> Result<()>
pub async fn schedule_immediate(&self, task_id: &str) -> Result<()>
Schedule immediate processing for critical threats
Sourcepub async fn schedule_batch(&self, task_ids: Vec<Uuid>) -> Result<()>
pub async fn schedule_batch(&self, task_ids: Vec<Uuid>) -> Result<()>
Schedule a batch of detection tasks
Sourcepub async fn pending_count(&self) -> usize
pub async fn pending_count(&self) -> usize
Get the number of pending tasks
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DetectionScheduler
impl RefUnwindSafe for DetectionScheduler
impl Send for DetectionScheduler
impl Sync for DetectionScheduler
impl Unpin for DetectionScheduler
impl UnwindSafe for DetectionScheduler
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