pub struct PollSchedule {
pub interval: Duration,
pub floor: Duration,
}Expand description
When an OperatorPoll polls: its timer, and the floor a nudge
cannot get under.
The two together, rather than two parameters, because they are one decision: how often this server reads somebody else’s repository. Reading them apart is how a deployment ends up with a tight floor and a loose timer, or the reverse, and no idea which one it meant.
Fields§
§interval: DurationHow often the poll fires on its own.
floor: DurationThe shortest gap between two polls, however many nudges arrive. See
MIN_POLL_INTERVAL, which is what every deployment passes; a field
only so this module’s own tests can exercise the bound without
sleeping through it.
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 moreSource§impl Debug for PollSchedule
impl Debug for PollSchedule
impl Copy 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§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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