pub struct CompoundPolicy { /* private fields */ }
Expand description

A rolling policy which delegates to a “trigger” and “roller”.

The trigger determines if the log file should roll, for example, by checking the size of the file. The roller processes the old log file, for example, by compressing it and moving it to a different location.

Implementations

Creates a new CompoundPolicy.

Trait Implementations

Formats the value using the given formatter. Read more

Rolls the current log file, if necessary. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.