pub struct LifecycleTicker { /* private fields */ }Expand description
Background task that periodically re-applies lifecycle policies.
Implementations§
Source§impl LifecycleTicker
impl LifecycleTicker
pub fn new(state: SharedEcrState) -> Self
Sourcepub fn with_interval(self, interval: Duration) -> Self
pub fn with_interval(self, interval: Duration) -> Self
Override the tick interval. Tests use a tiny value; production uses the default.
pub async fn run(self)
Auto Trait Implementations§
impl Freeze for LifecycleTicker
impl !RefUnwindSafe for LifecycleTicker
impl Send for LifecycleTicker
impl Sync for LifecycleTicker
impl Unpin for LifecycleTicker
impl UnsafeUnpin for LifecycleTicker
impl !UnwindSafe for LifecycleTicker
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