pub enum RefreshPolicy {
Once,
Interval(Duration),
Watch,
Push,
OnDemand,
}Expand description
How often a source should be refreshed.
Variants§
Once
Fetch at startup only, never refresh.
Interval(Duration)
Re-fetch on a fixed interval.
Watch
Watch the file for changes (file sources only).
Push
Value updated on each incoming NATS message (NATS sources only).
OnDemand
Fetch at startup, then only when explicitly triggered via API/signal.
Trait Implementations§
Source§impl Clone for RefreshPolicy
impl Clone for RefreshPolicy
Source§fn clone(&self) -> RefreshPolicy
fn clone(&self) -> RefreshPolicy
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 RefreshPolicy
impl Debug for RefreshPolicy
Source§impl PartialEq for RefreshPolicy
impl PartialEq for RefreshPolicy
Source§fn eq(&self, other: &RefreshPolicy) -> bool
fn eq(&self, other: &RefreshPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RefreshPolicy
Auto Trait Implementations§
impl Freeze for RefreshPolicy
impl RefUnwindSafe for RefreshPolicy
impl Send for RefreshPolicy
impl Sync for RefreshPolicy
impl Unpin for RefreshPolicy
impl UnsafeUnpin for RefreshPolicy
impl UnwindSafe for RefreshPolicy
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