pub trait MultipartUploadStepHandler: Send + Sync {
Show 19 methods
// Required methods
fn handle_load_bucket<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<Option<MultipartUploadFlowStep>, FlowError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn evaluate_check_bucket_accessible<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<MultipartUploadFlowStep, FlowError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn evaluate_validate_file_size<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<MultipartUploadFlowStep, FlowError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn evaluate_check_max_file_size<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<MultipartUploadFlowStep, FlowError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn handle_calculate_chunk_params<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<Option<MultipartUploadFlowStep>, FlowError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn evaluate_validate_mime_type<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<MultipartUploadFlowStep, FlowError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn handle_load_quota<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<Option<MultipartUploadFlowStep>, FlowError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn handle_create_default_quota<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<Option<MultipartUploadFlowStep>, FlowError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn evaluate_check_quota_available<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<MultipartUploadFlowStep, FlowError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn handle_create_upload_session<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<Option<MultipartUploadFlowStep>, FlowError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn handle_reserve_quota<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<Option<MultipartUploadFlowStep>, FlowError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn handle_emit_session_created<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<Option<MultipartUploadFlowStep>, FlowError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn handle_complete<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<(), FlowError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn handle_bucket_not_found<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<(), FlowError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn handle_bucket_not_active<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<(), FlowError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn handle_invalid_file_size<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<(), FlowError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn handle_file_too_large<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<(), FlowError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn handle_mime_type_not_allowed<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<(), FlowError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn handle_quota_exceeded<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<(), FlowError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Step handler trait for MultipartUpload flow
Required Methods§
Sourcefn handle_load_bucket<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<Option<MultipartUploadFlowStep>, FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle_load_bucket<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<Option<MultipartUploadFlowStep>, FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Handle load_bucket step
Sourcefn evaluate_check_bucket_accessible<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<MultipartUploadFlowStep, FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn evaluate_check_bucket_accessible<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<MultipartUploadFlowStep, FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Evaluate condition for check_bucket_accessible step
Sourcefn evaluate_validate_file_size<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<MultipartUploadFlowStep, FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn evaluate_validate_file_size<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<MultipartUploadFlowStep, FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Evaluate condition for validate_file_size step
Sourcefn evaluate_check_max_file_size<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<MultipartUploadFlowStep, FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn evaluate_check_max_file_size<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<MultipartUploadFlowStep, FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Evaluate condition for check_max_file_size step
Sourcefn handle_calculate_chunk_params<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<Option<MultipartUploadFlowStep>, FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle_calculate_chunk_params<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<Option<MultipartUploadFlowStep>, FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Handle calculate_chunk_params step
Sourcefn evaluate_validate_mime_type<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<MultipartUploadFlowStep, FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn evaluate_validate_mime_type<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<MultipartUploadFlowStep, FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Evaluate condition for validate_mime_type step
Sourcefn handle_load_quota<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<Option<MultipartUploadFlowStep>, FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle_load_quota<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<Option<MultipartUploadFlowStep>, FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Handle load_quota step
Sourcefn handle_create_default_quota<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<Option<MultipartUploadFlowStep>, FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle_create_default_quota<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<Option<MultipartUploadFlowStep>, FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Handle create_default_quota step
Sourcefn evaluate_check_quota_available<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<MultipartUploadFlowStep, FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn evaluate_check_quota_available<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<MultipartUploadFlowStep, FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Evaluate condition for check_quota_available step
Sourcefn handle_create_upload_session<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<Option<MultipartUploadFlowStep>, FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle_create_upload_session<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<Option<MultipartUploadFlowStep>, FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Handle create_upload_session step
Sourcefn handle_reserve_quota<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<Option<MultipartUploadFlowStep>, FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle_reserve_quota<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<Option<MultipartUploadFlowStep>, FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Handle reserve_quota step
Sourcefn handle_emit_session_created<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<Option<MultipartUploadFlowStep>, FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle_emit_session_created<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<Option<MultipartUploadFlowStep>, FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Handle emit_session_created step
Sourcefn handle_complete<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<(), FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle_complete<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<(), FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Handle terminal step complete
Sourcefn handle_bucket_not_found<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<(), FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle_bucket_not_found<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<(), FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Handle terminal step bucket_not_found
Sourcefn handle_bucket_not_active<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<(), FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle_bucket_not_active<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<(), FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Handle terminal step bucket_not_active
Sourcefn handle_invalid_file_size<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<(), FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle_invalid_file_size<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<(), FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Handle terminal step invalid_file_size
Sourcefn handle_file_too_large<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<(), FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle_file_too_large<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<(), FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Handle terminal step file_too_large
Sourcefn handle_mime_type_not_allowed<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<(), FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle_mime_type_not_allowed<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<(), FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Handle terminal step mime_type_not_allowed
Sourcefn handle_quota_exceeded<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<(), FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle_quota_exceeded<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 mut MultipartUploadFlowInstance,
) -> Pin<Box<dyn Future<Output = Result<(), FlowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Handle terminal step quota_exceeded
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".