pub trait Packer: Send {
    fn pack_name(&self) -> &'static str;
    fn do_pack(
        &self,
        log_file: File,
        log_file_path: &str
    ) -> Result<bool, LogError>; fn retry(&self) -> i32 { ... } }
Expand description

.zip or .lz4 or any one packer

Required Methods

Provided Methods

default 0 is not retry pack. if retry > 0 ,it will trying rePack

Implementors