Skip to main content

TranscodeFn

Type Alias TranscodeFn 

Source
pub type TranscodeFn = Arc<dyn Fn(&str, &ProxySpec) -> Result<String, String> + Send + Sync>;
Expand description

User-supplied transcode function signature.

The function receives (source_path, spec) and should return either Ok(output_path) or Err(error_message). It will be called from Rayon worker threads, so it must be Send + Sync.

Aliased Typeยง

pub struct TranscodeFn { /* private fields */ }