pub struct EagerThreshold(/* private fields */);Expand description
A validated eager-refresh threshold: a fraction strictly between 0 and 1.
A threshold of 0.8 means “once 80% of the entry’s duration has elapsed,
kick off a non-blocking background refresh”. Values outside the open
interval (0, 1) are rejected (returning None) rather than silently
clamped, matching FusionCache’s coercion of out-of-range values to “disabled”.
Implementations§
Trait Implementations§
Source§impl Clone for EagerThreshold
impl Clone for EagerThreshold
Source§fn clone(&self) -> EagerThreshold
fn clone(&self) -> EagerThreshold
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 EagerThreshold
Source§impl Debug for EagerThreshold
impl Debug for EagerThreshold
Source§impl PartialEq for EagerThreshold
impl PartialEq for EagerThreshold
impl StructuralPartialEq for EagerThreshold
Auto Trait Implementations§
impl Freeze for EagerThreshold
impl RefUnwindSafe for EagerThreshold
impl Send for EagerThreshold
impl Sync for EagerThreshold
impl Unpin for EagerThreshold
impl UnsafeUnpin for EagerThreshold
impl UnwindSafe for EagerThreshold
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