pub struct RefreshInterval(/* private fields */);Expand description
The agent’s per-target refresh interval.
04-subsystem-contracts.md, “Refresh and backpressure”: “a bounded interval,
default 60 seconds with a hard floor of 30 seconds per target”. The floor is
a rate-budget constraint, not a preference — below it, one target’s demand,
inventory, and workflow-count polling alone consumes roughly a tenth of the
hourly ceiling. Making it a type means a caller cannot write 5 into
Host.refresh_interval_secs at all.
Implementations§
Trait Implementations§
Source§impl Clone for RefreshInterval
impl Clone for RefreshInterval
Source§fn clone(&self) -> RefreshInterval
fn clone(&self) -> RefreshInterval
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 RefreshInterval
Source§impl Debug for RefreshInterval
impl Debug for RefreshInterval
Source§impl Default for RefreshInterval
impl Default for RefreshInterval
Source§impl<'de> Deserialize<'de> for RefreshInterval
impl<'de> Deserialize<'de> for RefreshInterval
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for RefreshInterval
impl Display for RefreshInterval
impl Eq for RefreshInterval
Source§impl From<RefreshInterval> for u16
impl From<RefreshInterval> for u16
Source§fn from(value: RefreshInterval) -> Self
fn from(value: RefreshInterval) -> Self
Converts to this type from the input type.
Source§impl Hash for RefreshInterval
impl Hash for RefreshInterval
Source§impl Ord for RefreshInterval
impl Ord for RefreshInterval
Source§fn cmp(&self, other: &RefreshInterval) -> Ordering
fn cmp(&self, other: &RefreshInterval) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for RefreshInterval
impl PartialEq for RefreshInterval
Source§impl PartialOrd for RefreshInterval
impl PartialOrd for RefreshInterval
Source§impl Serialize for RefreshInterval
impl Serialize for RefreshInterval
impl StructuralPartialEq for RefreshInterval
Auto Trait Implementations§
impl Freeze for RefreshInterval
impl RefUnwindSafe for RefreshInterval
impl Send for RefreshInterval
impl Sync for RefreshInterval
impl Unpin for RefreshInterval
impl UnsafeUnpin for RefreshInterval
impl UnwindSafe for RefreshInterval
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