1
0
Fork 0
mirror of synced 2024-05-13 17:02:31 +12:00
czkawka/czkawka_core/src/common_traits.rs
Rafał Mikrut e976d40eee
Loading saving cache improvements (#1072)
* Loading cache

* Loading

* Loading x2

* Optimization

* Cache common

* Delete outdated cache

* Common

* Loading cache/save almost

* Simplified a lot of cache concept

* Fix regression
2023-10-07 18:04:17 +02:00

20 lines
354 B
Rust

use std::path::Path;
pub trait DebugPrint {
fn debug_print(&self);
}
pub trait SaveResults {
fn save_results_to_file(&mut self, file_name: &str) -> bool;
}
pub trait PrintResults {
fn print_results(&self);
}
pub trait ResultEntry {
fn get_path(&self) -> &Path;
fn get_modified_date(&self) -> u64;
fn get_size(&self) -> u64;
}