pub struct AgentMaintenanceOptions { /* private fields */ }Expand description
Validated finite local pacing, dependency and shutdown bounds.
Implementations§
Source§impl AgentMaintenanceOptions
impl AgentMaintenanceOptions
Sourcepub fn with_pacing(
self,
delay: Duration,
failure: Duration,
) -> Result<Self, AgentMaintenanceError>
pub fn with_pacing( self, delay: Duration, failure: Duration, ) -> Result<Self, AgentMaintenanceError>
Positive 10 ms–60 s pacing after every ordinary or item-failing tick.
Sourcepub fn with_deadlines(
self,
tick: Duration,
drain: Duration,
) -> Result<Self, AgentMaintenanceError>
pub fn with_deadlines( self, tick: Duration, drain: Duration, ) -> Result<Self, AgentMaintenanceError>
Absolute tick deadline 100 ms–1 h; graceful drain deadline 10 ms–5 min.
Sourcepub fn with_readiness_limits(
self,
interval: Duration,
timeout: Duration,
freshness: Duration,
) -> Result<Self, AgentMaintenanceError>
pub fn with_readiness_limits( self, interval: Duration, timeout: Duration, freshness: Duration, ) -> Result<Self, AgentMaintenanceError>
Single-flight probes: interval 50 ms–60 s, whole-check timeout 10 ms–30 s; freshness at least their sum and at most 120 s.
Trait Implementations§
Source§impl Clone for AgentMaintenanceOptions
impl Clone for AgentMaintenanceOptions
Source§impl Debug for AgentMaintenanceOptions
impl Debug for AgentMaintenanceOptions
Auto Trait Implementations§
impl Forget for AgentMaintenanceOptions
impl Freeze for AgentMaintenanceOptions
impl Move for AgentMaintenanceOptions
impl RefUnwindSafe for AgentMaintenanceOptions
impl Send for AgentMaintenanceOptions
impl Sync for AgentMaintenanceOptions
impl Unpin for AgentMaintenanceOptions
impl UnsafeUnpin for AgentMaintenanceOptions
impl UnwindSafe for AgentMaintenanceOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more