pub struct Process { /* private fields */ }
Expand description
Process handle for running FFmpeg processes
Implementations§
Source§impl Process
impl Process
Sourcepub async fn spawn(config: ProcessConfig, args: Vec<String>) -> Result<Self>
pub async fn spawn(config: ProcessConfig, args: Vec<String>) -> Result<Self>
Spawn a new process with arguments
Sourcepub async fn wait(self) -> Result<ProcessOutput>
pub async fn wait(self) -> Result<ProcessOutput>
Wait for the process to complete
Sourcepub fn stdin(&mut self) -> Option<ChildStdin>
pub fn stdin(&mut self) -> Option<ChildStdin>
Get a handle to stdin
Sourcepub fn stdout(&mut self) -> Option<ChildStdout>
pub fn stdout(&mut self) -> Option<ChildStdout>
Get a handle to stdout
Sourcepub fn stderr(&mut self) -> Option<ChildStderr>
pub fn stderr(&mut self) -> Option<ChildStderr>
Get a handle to stderr
Sourcepub fn try_wait(&mut self) -> Result<Option<ExitStatus>>
pub fn try_wait(&mut self) -> Result<Option<ExitStatus>>
Try to wait for the process without blocking
Auto Trait Implementations§
impl Freeze for Process
impl !RefUnwindSafe for Process
impl Send for Process
impl Sync for Process
impl Unpin for Process
impl !UnwindSafe for Process
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