pub struct CaptureMonitor<P> { /* private fields */ }Implementations§
Source§impl<P> CaptureMonitor<P>where
P: MonitorPlatform,
impl<P> CaptureMonitor<P>where
P: MonitorPlatform,
pub fn new(platform: P) -> Self
pub fn next_event(&self) -> Option<String>
pub fn run<F>(&self, on_event: F) -> usize
pub fn run_with_limit<F>(&self, max_events: usize, on_event: F) -> usize
pub fn collect_events(&self, max_events: usize) -> Vec<String>
pub fn poll_until<F, C>( &self, poll_interval: Duration, should_continue: C, on_event: F, ) -> usize
pub fn poll_until_cancelled<F, S>( &self, poll_interval: Duration, cancel: &S, on_event: F, ) -> usize
pub fn poll_until_cancelled_coalesced<F, S>( &self, poll_interval: Duration, min_emit_interval: Duration, cancel: &S, on_event: F, ) -> usize
pub fn poll_until_cancelled_guarded<F, S>( &self, poll_interval: Duration, cancel: &S, guard: &MonitorSpamGuard, on_event: F, ) -> usize
pub fn poll_until_cancelled_guarded_with_stats<F, S>( &self, poll_interval: Duration, cancel: &S, guard: &MonitorSpamGuard, on_event: F, ) -> MonitorGuardStats
Auto Trait Implementations§
impl<P> Freeze for CaptureMonitor<P>where
P: Freeze,
impl<P> RefUnwindSafe for CaptureMonitor<P>where
P: RefUnwindSafe,
impl<P> Send for CaptureMonitor<P>where
P: Send,
impl<P> Sync for CaptureMonitor<P>where
P: Sync,
impl<P> Unpin for CaptureMonitor<P>where
P: Unpin,
impl<P> UnsafeUnpin for CaptureMonitor<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for CaptureMonitor<P>where
P: UnwindSafe,
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