#[non_exhaustive]pub enum EncodeSubtitleError {
OutOfMemory,
InvalidArgument,
OperationNotPermitted,
NotImplemented,
TryAgain,
UnknownError(i32),
}Expand description
Errors from encoding a subtitle (avcodec_encode_subtitle).
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.
OutOfMemory
Memory allocation failed (AVERROR(ENOMEM)).
InvalidArgument
FFmpeg rejected an argument as invalid (AVERROR(EINVAL)).
OperationNotPermitted
The operation was not permitted (AVERROR(EPERM)).
NotImplemented
Subtitle encoding is not supported by the linked FFmpeg build
(AVERROR(ENOSYS)).
TryAgain
The encoder is temporarily unable to accept input
(AVERROR(EAGAIN)); retry later.
UnknownError(i32)
Any other failure; the payload is the raw FFmpeg error code.
Trait Implementations§
Source§impl Debug for EncodeSubtitleError
impl Debug for EncodeSubtitleError
Source§impl Display for EncodeSubtitleError
impl Display for EncodeSubtitleError
Source§impl Error for EncodeSubtitleError
impl Error for EncodeSubtitleError
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<EncodeSubtitleError> for EncodingOperationError
impl From<EncodeSubtitleError> for EncodingOperationError
Source§fn from(source: EncodeSubtitleError) -> Self
fn from(source: EncodeSubtitleError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EncodeSubtitleError
impl RefUnwindSafe for EncodeSubtitleError
impl Send for EncodeSubtitleError
impl Sync for EncodeSubtitleError
impl Unpin for EncodeSubtitleError
impl UnsafeUnpin for EncodeSubtitleError
impl UnwindSafe for EncodeSubtitleError
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