#[non_exhaustive]pub enum SubtitleError {
Init(String),
Parse(String),
InvalidOption(String),
FontPath(String),
Open(String),
NoSubtitleStream(String),
BitmapSubtitles(String),
Decode(String),
}Expand description
Errors raised while configuring and loading subtitles — i.e. before any frame is processed.
SubtitleFilterBuilder::build validates everything up front so callers
can treat subtitle problems as soft failures (log and simply not attach
the filter) instead of having a running job abort mid-transcode.
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.
Init(String)
Parse(String)
InvalidOption(String)
FontPath(String)
Open(String)
NoSubtitleStream(String)
BitmapSubtitles(String)
Decode(String)
Trait Implementations§
Source§impl Debug for SubtitleError
impl Debug for SubtitleError
Source§impl Display for SubtitleError
impl Display for SubtitleError
Source§impl Error for SubtitleError
impl Error for SubtitleError
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<SubtitleError> for Error
impl From<SubtitleError> for Error
Source§fn from(source: SubtitleError) -> Self
fn from(source: SubtitleError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SubtitleError
impl RefUnwindSafe for SubtitleError
impl Send for SubtitleError
impl Sync for SubtitleError
impl Unpin for SubtitleError
impl UnsafeUnpin for SubtitleError
impl UnwindSafe for SubtitleError
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