Skip to main content

MediaProcessingStepHandler

Trait MediaProcessingStepHandler 

Source
pub trait MediaProcessingStepHandler: Send + Sync {
    // Required methods
    fn evaluate_check_media_type<'life0, 'life1, 'async_trait>(
        &'life0 self,
        instance: &'life1 MediaProcessingFlowInstance,
    ) -> Pin<Box<dyn Future<Output = Result<MediaProcessingFlowStep, FlowError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn handle_create_image_thumbnail<'life0, 'life1, 'async_trait>(
        &'life0 self,
        instance: &'life1 mut MediaProcessingFlowInstance,
    ) -> Pin<Box<dyn Future<Output = Result<Option<MediaProcessingFlowStep>, FlowError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn handle_create_video_thumbnail<'life0, 'life1, 'async_trait>(
        &'life0 self,
        instance: &'life1 mut MediaProcessingFlowInstance,
    ) -> Pin<Box<dyn Future<Output = Result<Option<MediaProcessingFlowStep>, FlowError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn handle_create_document_preview<'life0, 'life1, 'async_trait>(
        &'life0 self,
        instance: &'life1 mut MediaProcessingFlowInstance,
    ) -> Pin<Box<dyn Future<Output = Result<Option<MediaProcessingFlowStep>, FlowError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn handle_no_processing_needed<'life0, 'life1, 'async_trait>(
        &'life0 self,
        instance: &'life1 mut MediaProcessingFlowInstance,
    ) -> 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 MediaProcessingFlowInstance,
    ) -> 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 MediaProcessing flow

Required Methods§

Source

fn evaluate_check_media_type<'life0, 'life1, 'async_trait>( &'life0 self, instance: &'life1 MediaProcessingFlowInstance, ) -> Pin<Box<dyn Future<Output = Result<MediaProcessingFlowStep, FlowError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Evaluate condition for check_media_type step

Source

fn handle_create_image_thumbnail<'life0, 'life1, 'async_trait>( &'life0 self, instance: &'life1 mut MediaProcessingFlowInstance, ) -> Pin<Box<dyn Future<Output = Result<Option<MediaProcessingFlowStep>, FlowError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Handle create_image_thumbnail step

Source

fn handle_create_video_thumbnail<'life0, 'life1, 'async_trait>( &'life0 self, instance: &'life1 mut MediaProcessingFlowInstance, ) -> Pin<Box<dyn Future<Output = Result<Option<MediaProcessingFlowStep>, FlowError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Handle create_video_thumbnail step

Source

fn handle_create_document_preview<'life0, 'life1, 'async_trait>( &'life0 self, instance: &'life1 mut MediaProcessingFlowInstance, ) -> Pin<Box<dyn Future<Output = Result<Option<MediaProcessingFlowStep>, FlowError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Handle create_document_preview step

Source

fn handle_no_processing_needed<'life0, 'life1, 'async_trait>( &'life0 self, instance: &'life1 mut MediaProcessingFlowInstance, ) -> Pin<Box<dyn Future<Output = Result<(), FlowError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Handle terminal step no_processing_needed

Source

fn handle_complete<'life0, 'life1, 'async_trait>( &'life0 self, instance: &'life1 mut MediaProcessingFlowInstance, ) -> Pin<Box<dyn Future<Output = Result<(), FlowError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Handle terminal step complete

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§