Skip to main content

RollingCondition

Trait RollingCondition 

Source
pub trait RollingCondition {
    // Required method
    fn should_rollover(
        &mut self,
        now: &DateTime<Local>,
        current_filesize: u64,
    ) -> bool;
}
Expand description

Determines when a file should be “rolled over”.

Required Methods§

Source

fn should_rollover( &mut self, now: &DateTime<Local>, current_filesize: u64, ) -> bool

Determine and return whether or not the file should be rolled over.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§