pub struct DetectionService { /* private fields */ }Expand description
Background poller that emits point-in-time process change events.
Implementations§
Source§impl DetectionService
impl DetectionService
Sourcepub fn new(sender: UnboundedSender<SessionEvent>, poll_interval_ms: u64) -> Self
pub fn new(sender: UnboundedSender<SessionEvent>, poll_interval_ms: u64) -> Self
Create a new detection service.
Sourcepub async fn run(self, cancellation: CancellationToken)
pub async fn run(self, cancellation: CancellationToken)
Run the detection loop until the cancellation token fires.
Auto Trait Implementations§
impl Freeze for DetectionService
impl RefUnwindSafe for DetectionService
impl Send for DetectionService
impl Sync for DetectionService
impl Unpin for DetectionService
impl UnsafeUnpin for DetectionService
impl UnwindSafe for DetectionService
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