pub struct PollConfig {
pub subject: String,
pub interval: Duration,
pub max: Duration,
pub deadline: Duration,
}Expand description
Poll tuning. Default: 2 s interval, 30 s clamp, 120 s deadline.
Fields§
§subject: StringWhat is being waited on — the deadline error names it (e.g.
"log tail (GET /data/api/v1/logs)", "/StatusPing readiness").
interval: DurationWait between polls; also the backoff FLOOR (never shrinks below).
max: DurationBackoff clamp ceiling (additionally capped at 30 s).
deadline: DurationTotal budget; Duration::MAX = until the process is killed.
Trait Implementations§
Source§impl Clone for PollConfig
impl Clone for PollConfig
Source§fn clone(&self) -> PollConfig
fn clone(&self) -> PollConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PollConfig
impl Debug for PollConfig
Auto Trait Implementations§
impl Freeze for PollConfig
impl RefUnwindSafe for PollConfig
impl Send for PollConfig
impl Sync for PollConfig
impl Unpin for PollConfig
impl UnsafeUnpin for PollConfig
impl UnwindSafe for PollConfig
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