pub enum RemuxError {
InvalidConfig {
reason: String,
},
OperationFailed {
reason: String,
},
Ffmpeg {
code: i32,
message: String,
},
Io(Error),
}Expand description
Errors that can occur during stream-copy remuxing (trim, audio replace / extract / add).
Variants§
InvalidConfig
A configuration value is missing or invalid.
OperationFailed
A remux operation (trim, extract, replace, add) failed for a structural reason (e.g. the input has no matching stream, or a mux/remux call failed).
Ffmpeg
An underlying FFmpeg function returned an error code.
Fields
Io(Error)
An I/O error occurred.
Trait Implementations§
Source§impl Debug for RemuxError
impl Debug for RemuxError
Source§impl Display for RemuxError
impl Display for RemuxError
Source§impl Error for RemuxError
impl Error for RemuxError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Error> for RemuxError
impl From<Error> for RemuxError
Source§impl MediaError for RemuxError
impl MediaError for RemuxError
Auto Trait Implementations§
impl !RefUnwindSafe for RemuxError
impl !UnwindSafe for RemuxError
impl Freeze for RemuxError
impl Send for RemuxError
impl Sync for RemuxError
impl Unpin for RemuxError
impl UnsafeUnpin for RemuxError
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