pub struct CpuLoadSignal { /* private fields */ }Expand description
Periodically samples aggregate system CPU usage.
Implementations§
Source§impl CpuLoadSignal
impl CpuLoadSignal
Sourcepub fn new(options: CpuLoadSignalOptions) -> Self
pub fn new(options: CpuLoadSignalOptions) -> Self
Creates a CPU load signal with the supplied options.
Trait Implementations§
Source§impl Default for CpuLoadSignal
impl Default for CpuLoadSignal
Source§impl LoadSignal for CpuLoadSignal
impl LoadSignal for CpuLoadSignal
Source§fn overload_threshold(&self) -> f32
fn overload_threshold(&self) -> f32
Returns the utilization threshold at which this signal is overloaded.
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 CpuLoadSignal
impl RefUnwindSafe for CpuLoadSignal
impl Send for CpuLoadSignal
impl Sync for CpuLoadSignal
impl Unpin for CpuLoadSignal
impl UnsafeUnpin for CpuLoadSignal
impl UnwindSafe for CpuLoadSignal
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