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.
Sourcepub fn with_snapshot(
self,
store: Option<Arc<dyn SnapshotStore>>,
lock: Arc<AsyncMutex<()>>,
) -> Self
pub fn with_snapshot( self, store: Option<Arc<dyn SnapshotStore>>, lock: Arc<AsyncMutex<()>>, ) -> Self
Wire the snapshot store + lock so a pruning tick persists. Pass the
same lock the EcrService uses so ticker and request-path saves
serialize against each other. bug-audit 4.6.
pub async fn run(self)
Auto Trait Implementations§
impl !RefUnwindSafe for LifecycleTicker
impl !UnwindSafe for LifecycleTicker
impl Freeze for LifecycleTicker
impl Send for LifecycleTicker
impl Sync for LifecycleTicker
impl Unpin for LifecycleTicker
impl UnsafeUnpin 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