Skip to main content

LifecycleTask

Trait LifecycleTask 

Source
pub trait LifecycleTask: Send + 'static {
    // Required methods
    fn name(&self) -> &'static str;
    fn interval(&self) -> Duration;
    fn classes(&self) -> &'static [RetentionClass];
    fn run_slice(&mut self) -> Progress;
}

Required Methods§

Source

fn name(&self) -> &'static str

Source

fn interval(&self) -> Duration

Source

fn classes(&self) -> &'static [RetentionClass]

Source

fn run_slice(&mut self) -> Progress

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§