pub struct Converter { /* private fields */ }Expand description
Configures the executables and timeouts used by embedded conversions.
Implementations§
Source§impl Converter
impl Converter
Sourcepub fn with_programs(
ffmpeg_path: impl Into<PathBuf>,
ffprobe_path: impl Into<PathBuf>,
) -> Self
pub fn with_programs( ffmpeg_path: impl Into<PathBuf>, ffprobe_path: impl Into<PathBuf>, ) -> Self
Uses explicit ffmpeg and ffprobe executable paths.
Sourcepub fn with_tool_check_timeout(self, timeout: Duration) -> Self
pub fn with_tool_check_timeout(self, timeout: Duration) -> Self
Sets the maximum time allowed for each executable availability check.
Sourcepub fn with_probe_timeout(self, timeout: Duration) -> Self
pub fn with_probe_timeout(self, timeout: Duration) -> Self
Sets the maximum duration probe time before conversion continues without a total.
pub fn ffmpeg_path(&self) -> &Path
pub fn ffprobe_path(&self) -> &Path
Sourcepub fn check_tools(&self) -> ToolAvailability
pub fn check_tools(&self) -> ToolAvailability
Checks both executables synchronously using their -version option.
Run this outside a UI render loop. Each check is bounded by the configured tool-check timeout.
Sourcepub fn spawn(&self, request: ConversionRequest) -> ConversionJob
pub fn spawn(&self, request: ConversionRequest) -> ConversionJob
Starts a conversion worker and returns immediately.
Validation, probing, and process startup happen on the worker thread.
Trait Implementations§
impl Eq for Converter
impl StructuralPartialEq for Converter
Auto Trait Implementations§
impl Freeze for Converter
impl RefUnwindSafe for Converter
impl Send for Converter
impl Sync for Converter
impl Unpin for Converter
impl UnsafeUnpin for Converter
impl UnwindSafe for Converter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more