pub trait FilesUploadStatusNotifier: Send {
// Required methods
fn collect_entries(&mut self, entries_iter: Vec<DirEntry>);
fn collect_paths(&mut self, path: &Path);
fn on_verifying_uploaded_chunks_init(&self, chunks_len: usize);
fn on_verifying_uploaded_chunks_success(
&self,
completed_files: &[(PathBuf, OsString, ChunkAddress)],
make_data_public: bool,
);
fn on_verifying_uploaded_chunks_failure(&self, failed_chunks_len: usize);
fn on_failed_to_upload_all_files(
&self,
incomplete_files: Vec<(&PathBuf, &OsString, &ChunkAddress)>,
completed_files: &[(PathBuf, OsString, ChunkAddress)],
make_data_public: bool,
);
fn on_chunking_complete(
&self,
upload_cfg: &UploadCfg,
make_data_public: bool,
chunks_to_upload_len: usize,
);
fn on_upload_complete(
&self,
upload_sum: &UploadSummary,
elapsed_time: Duration,
chunks_to_upload_len: usize,
);
}Expand description
A trait designed to customize the standard output behavior for file upload processes.