Module file_rotate::suffix
source · [−]Expand description
Suffix schemes determine the suffix of rotated files
This behaviour is fully extensible through the SuffixScheme trait, and two behaviours are provided: AppendCount and AppendTimestamp
Structs
Append a number when rotating the file. The greater the number, the older. The oldest files are deleted.
Append current timestamp as suffix when rotating files. If the timestamp already exists, an additional number is appended.
Structured representation of the suffixes of AppendTimestamp.
Enums
How to determine whether a file should be deleted, in the case of AppendTimestamp.
Traits
Representation of a suffix
Ord + PartialOrd
: sort by age of the suffix. Most recent first (smallest).
How to move files: How to rename, when to delete.