Skip to main content

MultipartUploadStepHandler

Trait MultipartUploadStepHandler 

Source
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§

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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".

Implementors§