pub struct MemoryLoadSignal { /* private fields */ }Expand description
Periodically samples used system memory against a configurable budget.
Implementations§
Source§impl MemoryLoadSignal
impl MemoryLoadSignal
Sourcepub fn new(options: MemoryLoadSignalOptions) -> Self
pub fn new(options: MemoryLoadSignalOptions) -> Self
Creates a memory load signal with the supplied options.
Trait Implementations§
Source§impl Default for MemoryLoadSignal
impl Default for MemoryLoadSignal
Source§impl LoadSignal for MemoryLoadSignal
impl LoadSignal for MemoryLoadSignal
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 MemoryLoadSignal
impl RefUnwindSafe for MemoryLoadSignal
impl Send for MemoryLoadSignal
impl Sync for MemoryLoadSignal
impl Unpin for MemoryLoadSignal
impl UnsafeUnpin for MemoryLoadSignal
impl UnwindSafe for MemoryLoadSignal
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