pub struct FnUploadListener<F1, F2, F3>where
F1: Fn(Vec<OperationResult>) + Send + Sync,
F2: Fn(OperationResult) + Send + Sync,
F3: Fn(OperationResult) + Send + Sync, /* private fields */ A simple upload listener that wraps callback functions.
This provides a convenient way to create listeners using closures without implementing the full trait.
Example
Implementations
Sourceimpl<F1, F2, F3>FnUploadListener<F1, F2, F3>
impl<F1, F2, F3>FnUploadListener<F1, F2, F3>
where F1: Fn(Vec<OperationResult>) + Send + Sync, F2: Fn(OperationResult) + Send + Sync, F3: Fn(OperationResult) + Send + Sync,
Trait Implementations
Sourceimpl<F1, F2, F3>FileUploadListener for FnUploadListener<F1, F2, F3>
impl<F1, F2, F3>FileUploadListener for FnUploadListener<F1, F2, F3>
where F1: Fn(Vec<OperationResult>) + Send + Sync, F2: Fn(OperationResult) + Send + Sync, F3: Fn(OperationResult) + Send + Sync,
Source
fn on_multi_part_upload_complete(&self, results: Vec<OperationResult>)
Called when all parts of a multi-part upload have been completed. Read more
Source
fn on_part_upload(&self, result: OperationResult)
Called whenever a single part of a multi-part upload has been completed. Read more
Source
fn on_full_file_upload(&self, result: OperationResult)
Called for each batch of whole files sent in one request, as it finishes, and for each file that could not be read to be sent. Read more
Source
fn on_multi_part_upload_cancel(&self, results: Vec<OperationResult>)
Called when a multi-part upload was aborted because one of its stages failed after it had been initiated. Read more