Struct glommio::DefaultStallDetectionHandler
source · pub struct DefaultStallDetectionHandler {}
Expand description
Default settings for signal number, threshold and stall handler.
By default, the threshold to consider a task queue stalled is set to
10ms over the expected run time. The default handler will log a stack trace
of the currently executing task queue. The default signal number is
nix::libc::SIGUSR1
.
Trait Implementations§
source§impl Debug for DefaultStallDetectionHandler
impl Debug for DefaultStallDetectionHandler
source§impl StallDetectionHandler for DefaultStallDetectionHandler
impl StallDetectionHandler for DefaultStallDetectionHandler
source§fn threshold(
&self,
_queue_handle: TaskQueueHandle,
_max_expected_runtime: Duration
) -> Option<Duration>
fn threshold( &self, _queue_handle: TaskQueueHandle, _max_expected_runtime: Duration ) -> Option<Duration>
How far past the preemption timer should qualify as a stall
If None is returned, don’t use the stall detector for this task queue.
The default implementation considers anything running 10ms over
expected runtime to be stalling the reactor.
source§fn signal(&self) -> u8
fn signal(&self) -> u8
What signal number to use; see values in libc::SIG*.
The default is
nix::libc::SIGUSR1
.Auto Trait Implementations§
impl Freeze for DefaultStallDetectionHandler
impl RefUnwindSafe for DefaultStallDetectionHandler
impl Send for DefaultStallDetectionHandler
impl Sync for DefaultStallDetectionHandler
impl Unpin for DefaultStallDetectionHandler
impl UnwindSafe for DefaultStallDetectionHandler
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