#[non_exhaustive]pub enum MuxingOperationError {
WriteHeader(WriteHeaderError),
BitstreamFilterInit(String, MuxingError),
InterleavedWriteError(MuxingError),
TrailerWriteError(MuxingError),
IOCloseError(MuxingError),
ThreadExited,
}Expand description
Errors from the muxer stage while writing the output container.
Variants carrying a MuxingError embed the mapped FFmpeg error.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
WriteHeader(WriteHeaderError)
Returned when writing the container header fails (see
WriteHeaderError).
BitstreamFilterInit(String, MuxingError)
Returned when initializing a bitstream filter chain for an output stream fails; fields are the chain description and the underlying error.
InterleavedWriteError(MuxingError)
Returned when writing an interleaved packet to the container fails
(av_interleaved_write_frame).
TrailerWriteError(MuxingError)
Returned when writing the container trailer fails
(av_write_trailer).
IOCloseError(MuxingError)
Returned when closing the output I/O context fails.
ThreadExited
Returned when spawning the muxer (or mux-init) thread fails, so muxing never started.
Trait Implementations§
Source§impl Debug for MuxingOperationError
impl Debug for MuxingOperationError
Source§impl Display for MuxingOperationError
impl Display for MuxingOperationError
Source§impl Error for MuxingOperationError
impl Error for MuxingOperationError
1.30.0 · 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<MuxingOperationError> for Error
impl From<MuxingOperationError> for Error
Source§fn from(source: MuxingOperationError) -> Self
fn from(source: MuxingOperationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MuxingOperationError
impl RefUnwindSafe for MuxingOperationError
impl Send for MuxingOperationError
impl Sync for MuxingOperationError
impl Unpin for MuxingOperationError
impl UnsafeUnpin for MuxingOperationError
impl UnwindSafe for MuxingOperationError
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