Skip to main content

PageSinkFactory

Trait PageSinkFactory 

Source
pub trait PageSinkFactory: Send + Sync {
    // Required method
    fn create_sink(
        &self,
        output_path: &str,
    ) -> Result<Box<dyn PageSink>, String>;
}
Expand description

Factory for creating per-page sinks.

Required Methods§

Source

fn create_sink(&self, output_path: &str) -> Result<Box<dyn PageSink>, String>

Create a new sink for a single page.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§