pub struct PollSchedule {
pub initial_delay: Duration,
pub max_delay: Duration,
pub timeout: Duration,
}Expand description
How ScriptingClient::execute polls a job to completion.
The defaults follow the backend contract: poll every second, back off to
five seconds, and give up at the 15-minute server-side runtime cap (an
execution that runs longer is failed server-side, so waiting past it can
never observe a result). Override via ScriptingClient::with_poll_schedule
when a caller needs a different budget.
Fields§
§initial_delay: DurationWait before the first poll.
max_delay: DurationUpper bound the delay backs off to.
timeout: DurationGive up with an error once this much wall time has elapsed without a terminal status.
Implementations§
Source§impl PollSchedule
impl PollSchedule
Trait Implementations§
Source§impl Clone for PollSchedule
impl Clone for PollSchedule
Source§fn clone(&self) -> PollSchedule
fn clone(&self) -> PollSchedule
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 moreimpl Copy for PollSchedule
Source§impl Debug for PollSchedule
impl Debug for PollSchedule
Source§impl Default for PollSchedule
impl Default for PollSchedule
Source§fn default() -> PollSchedule
fn default() -> PollSchedule
Returns the “default value” for a type. Read more
impl Eq for PollSchedule
Source§impl PartialEq for PollSchedule
impl PartialEq for PollSchedule
impl StructuralPartialEq for PollSchedule
Auto Trait Implementations§
impl Freeze for PollSchedule
impl RefUnwindSafe for PollSchedule
impl Send for PollSchedule
impl Sync for PollSchedule
impl Unpin for PollSchedule
impl UnsafeUnpin for PollSchedule
impl UnwindSafe for PollSchedule
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