pub enum SubtitleError {
ParseError(String),
InvalidFormat(String),
InvalidTimestamp(String),
FontError(String),
RenderError(String),
InvalidColor(String),
InvalidStyle(String),
UnsupportedFeature(String),
IoError(String),
InvalidFrameFormat(String),
Internal(String),
}Expand description
Errors that can occur during subtitle processing.
Variants§
ParseError(String)
Parse error.
InvalidFormat(String)
Invalid subtitle format.
InvalidTimestamp(String)
Invalid timestamp.
FontError(String)
Font loading error.
RenderError(String)
Text rendering error.
InvalidColor(String)
Invalid color specification.
InvalidStyle(String)
Invalid style parameter.
UnsupportedFeature(String)
Unsupported feature.
IoError(String)
I/O error.
InvalidFrameFormat(String)
Invalid frame format for overlay.
Internal(String)
Internal error.
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<Error> for SubtitleError
impl From<Error> for SubtitleError
Source§impl From<FromUtf8Error> for SubtitleError
impl From<FromUtf8Error> for SubtitleError
Source§fn from(err: FromUtf8Error) -> Self
fn from(err: FromUtf8Error) -> 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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<E> OxiErrorExt for Ewhere
E: Error,
impl<E> OxiErrorExt for Ewhere
E: Error,
Source§fn with_oxi_context(self, frame: ErrorFrame) -> OxiError
fn with_oxi_context(self, frame: ErrorFrame) -> OxiError
Wraps
self by prepending the frame’s display string as context.