Struct agner_sup::mixed::RestartIntensity
source · pub struct RestartIntensity<D> {
pub max_restarts: usize,
pub within: D,
}Fields§
§max_restarts: usize§within: DImplementations§
source§impl<D> RestartIntensity<D>
impl<D> RestartIntensity<D>
pub fn new(max_restarts: usize, within: D) -> Self
pub fn new_stats(&self) -> RestartStats<<D as DurationToInstant>::Instant>where D: DurationToInstant,
pub fn report_exit<I>( &self, stats: &mut RestartStats<I>, now: I ) -> Result<(), MaxRestartIntensityReached>where I: ElapsedSince<Elapsed = D>,
Trait Implementations§
source§impl<D: Clone> Clone for RestartIntensity<D>
impl<D: Clone> Clone for RestartIntensity<D>
source§fn clone(&self) -> RestartIntensity<D>
fn clone(&self) -> RestartIntensity<D>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<D: Debug> Debug for RestartIntensity<D>
impl<D: Debug> Debug for RestartIntensity<D>
source§impl Default for RestartIntensity<Duration>
impl Default for RestartIntensity<Duration>
impl<D: Copy> Copy for RestartIntensity<D>
Auto Trait Implementations§
impl<D> RefUnwindSafe for RestartIntensity<D>where D: RefUnwindSafe,
impl<D> Send for RestartIntensity<D>where D: Send,
impl<D> Sync for RestartIntensity<D>where D: Sync,
impl<D> Unpin for RestartIntensity<D>where D: Unpin,
impl<D> UnwindSafe for RestartIntensity<D>where D: 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