pub trait FilePurger:
Send
+ Sync
+ Debug {
// Required method
fn remove_file(&self, file_meta: FileMeta, is_delete: bool);
// Provided method
fn new_file(&self, _: &FileMeta) { ... }
}
Expand description
A worker to delete files in background.
Required Methods§
Sourcefn remove_file(&self, file_meta: FileMeta, is_delete: bool)
fn remove_file(&self, file_meta: FileMeta, is_delete: bool)
Send a request to remove the file.
If is_delete
is true, the file will be deleted from the storage.
Otherwise, only the reference will be removed.