pub enum PreviewError {
FileNotFound {
path: PathBuf,
},
NoVideoStream {
path: PathBuf,
},
SeekFailed {
target: Duration,
reason: String,
},
Decode(DecodeError),
Ffmpeg {
code: i32,
message: String,
},
Probe(ProbeError),
Pipeline(PipelineError),
Io(Error),
SeekOutOfRange {
pts: Duration,
},
}Expand description
Errors that can occur during preview and proxy operations.
Variants§
FileNotFound
The media file was not found at the specified path.
NoVideoStream
The media file has no video stream.
SeekFailed
A seek operation failed.
Fields
Decode(DecodeError)
An underlying decode error occurred.
Ffmpeg
A raw FFmpeg error.
code is the negative integer returned by the FFmpeg API, or 0 when no
numeric code is available. message is from av_strerror or an internal
description.
Fields
Probe(ProbeError)
A probe error while analysing the media file.
Pipeline(PipelineError)
A proxy generation pipeline error.
Io(Error)
An I/O error during file operations.
SeekOutOfRange
A seek target lies outside the valid range of the timeline.
Trait Implementations§
Source§impl Debug for PreviewError
impl Debug for PreviewError
Source§impl Display for PreviewError
impl Display for PreviewError
Source§impl Error for PreviewError
impl Error for PreviewError
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<DecodeError> for PreviewError
impl From<DecodeError> for PreviewError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for PreviewError
impl From<Error> for PreviewError
Source§impl From<PipelineError> for PreviewError
impl From<PipelineError> for PreviewError
Source§fn from(source: PipelineError) -> Self
fn from(source: PipelineError) -> Self
Converts to this type from the input type.
Source§impl From<ProbeError> for PreviewError
impl From<ProbeError> for PreviewError
Source§fn from(source: ProbeError) -> Self
fn from(source: ProbeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for PreviewError
impl !UnwindSafe for PreviewError
impl Freeze for PreviewError
impl Send for PreviewError
impl Sync for PreviewError
impl Unpin for PreviewError
impl UnsafeUnpin for PreviewError
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