pub struct FnDownloadListener<F1, F2, F3>where
F1: Fn(Vec<OperationResult>) + Send + Sync,
F2: Fn(OperationResult) + Send + Sync,
F3: Fn(Vec<String>) + Send + Sync, /* private fields */ A simple download listener that wraps callback functions.
This provides a convenient way to create listeners using closures without implementing the full trait.
Example
Implementations
Trait Implementations
Source
impl<F1, F2, F3>FileDownloadListener for FnDownloadListener<F1, F2, F3>
Source
fn on_multi_part_download_complete(&self, results: Vec<OperationResult>)
Called when all parts of a multi-part download have been completed. Read more
Source
fn on_part_download(&self, result: OperationResult)
Called whenever a single part of a multi-part download has been completed. Read more