pub struct TokioRuntimeLoadSignal { /* private fields */ }Expand description
Detects Tokio executor load by measuring stable-API timer scheduling lag.
This deliberately uses timer lag instead of the unstable Tokio runtime metrics
sketched in INTERFACE.md section 13, so it does not require tokio_unstable.
Implementations§
Source§impl TokioRuntimeLoadSignal
impl TokioRuntimeLoadSignal
Sourcepub fn new(options: TokioRuntimeLoadSignalOptions) -> Self
pub fn new(options: TokioRuntimeLoadSignalOptions) -> Self
Creates a Tokio runtime load signal with the supplied options.
Trait Implementations§
Source§impl Default for TokioRuntimeLoadSignal
impl Default for TokioRuntimeLoadSignal
Source§impl LoadSignal for TokioRuntimeLoadSignal
impl LoadSignal for TokioRuntimeLoadSignal
Source§fn overload_threshold(&self) -> f32
fn overload_threshold(&self) -> f32
Returns the lag-to-sampling-interval ratio as informational metadata.
SystemStatus consumes recorded overload flags
directly rather than interpreting this value.
Source§fn start<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), CrawlError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn start<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), CrawlError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Starts any sampling work required by this signal.
Auto Trait Implementations§
impl !Freeze for TokioRuntimeLoadSignal
impl RefUnwindSafe for TokioRuntimeLoadSignal
impl Send for TokioRuntimeLoadSignal
impl Sync for TokioRuntimeLoadSignal
impl Unpin for TokioRuntimeLoadSignal
impl UnsafeUnpin for TokioRuntimeLoadSignal
impl UnwindSafe for TokioRuntimeLoadSignal
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