pub struct CleanupConfig {
pub enabled: bool,
pub interval: Duration,
pub cleanup_nonce: bool,
pub cleanup_online: bool,
}Expand description
Cleanup switches | 清理开关
Fields§
§enabled: boolMaster switch; false means spawn() returns a no-op handle. 总开关;false 时 spawn 返回空操作句柄。
interval: Durationinterval | interval
cleanup_nonce: boolcleanup_nonce | cleanup_nonce
cleanup_online: boolBest-effort prune of online indexes (list members whose record expired). 尽力修剪在线索引(记录已过期的列表成员)。
Trait Implementations§
Source§impl Clone for CleanupConfig
impl Clone for CleanupConfig
Source§fn clone(&self) -> CleanupConfig
fn clone(&self) -> CleanupConfig
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 CleanupConfig
impl Debug for CleanupConfig
Auto Trait Implementations§
impl Freeze for CleanupConfig
impl RefUnwindSafe for CleanupConfig
impl Send for CleanupConfig
impl Sync for CleanupConfig
impl Unpin for CleanupConfig
impl UnsafeUnpin for CleanupConfig
impl UnwindSafe for CleanupConfig
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