pub struct ProactiveScheduler { /* private fields */ }Implementations§
Source§impl ProactiveScheduler
impl ProactiveScheduler
pub fn new(refresh_interval: Duration) -> Self
pub fn should_refresh(&self) -> bool
pub fn mark_refreshed(&self)
pub fn set_auto_refresh(&self, enabled: bool)
pub fn refresh_count(&self) -> u64
pub fn last_refresh(&self) -> DateTime<Utc>
pub fn next_refresh_at(&self) -> DateTime<Utc>
Auto Trait Implementations§
impl !Freeze for ProactiveScheduler
impl RefUnwindSafe for ProactiveScheduler
impl Send for ProactiveScheduler
impl Sync for ProactiveScheduler
impl Unpin for ProactiveScheduler
impl UnsafeUnpin for ProactiveScheduler
impl UnwindSafe for ProactiveScheduler
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