pub enum ReloadStrategy {
Never,
OnRequest,
Periodic(u64),
Watch,
}Expand description
Configuration reload strategy 配置重新加载策略
Equivalent to Spring Cloud Config refresh strategies. 等价于Spring Cloud Config刷新策略。
Variants§
Never
Never reload configuration 从不重新加载配置
OnRequest
Reload on request 按需重新加载
Periodic(u64)
Reload periodically (with interval in seconds) 定期重新加载(间隔秒数)
Watch
Watch for file changes 监视文件更改
Trait Implementations§
Source§impl Clone for ReloadStrategy
impl Clone for ReloadStrategy
Source§fn clone(&self) -> ReloadStrategy
fn clone(&self) -> ReloadStrategy
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 ReloadStrategy
Source§impl Debug for ReloadStrategy
impl Debug for ReloadStrategy
impl Eq for ReloadStrategy
Source§impl PartialEq for ReloadStrategy
impl PartialEq for ReloadStrategy
Source§fn eq(&self, other: &ReloadStrategy) -> bool
fn eq(&self, other: &ReloadStrategy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReloadStrategy
Auto Trait Implementations§
impl Freeze for ReloadStrategy
impl RefUnwindSafe for ReloadStrategy
impl Send for ReloadStrategy
impl Sync for ReloadStrategy
impl Unpin for ReloadStrategy
impl UnsafeUnpin for ReloadStrategy
impl UnwindSafe for ReloadStrategy
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.