pub enum Error {
Show 27 variants
ThreadSpawnError(ThreadSpawnError),
FileDemuxError(FileDemuxError),
AppSourceError(AppSourceError),
RtspSourceError(RtspSourceError),
TestVideoSourceError(TestVideoSourceError),
TestAudioSourceError(TestAudioSourceError),
SwDecoderError(SwDecoderError),
SwEncoderError(SwEncoderError),
PacerError(PacerError),
VideoSynchronizerError(VideoSynchronizerError),
SwAudioEncoderError(SwAudioEncoderError),
AudioResamplerError(AudioResamplerError),
AudioVolumeError(AudioVolumeError),
SwScalerError(SwScalerError),
SwChromaKeyError(SwChromaKeyError),
QueueError(QueueError),
GraphError(GraphError),
LogInitError(LogInitError),
AudioMixerError(AudioMixerError),
SwVideoCompositorError(SwVideoCompositorError),
Mp4MuxerError(Mp4MuxerError),
HlsMuxerError(HlsMuxerError),
RtspSinkError(RtspSinkError),
OrtDetectorError(OrtDetectorError),
WebRtcError(WebRtcError),
Ffmpeg(Error),
Other(String),
}Expand description
Crate-wide error. Each element defines its own {Element}Error (see
FileDemuxError, SwDecoderError, QueueError) for its own
domain-specific failures; this enum just aggregates them so trait
methods (Sink::consume, SourceElement::run, …) — which have to
return one common error type to stay object-safe across arbitrary
Box<dyn Sink> — can report any of them. ? chains through
automatically: an element’s own function returns its own error type,
and the moment that gets used with ? inside a function returning
this top-level Result, it’s converted here via #[from].
Variants§
ThreadSpawnError(ThreadSpawnError)
A pipeline, queue, or driver worker thread could not be created.
FileDemuxError(FileDemuxError)
A file demuxer operation failed.
AppSourceError(AppSourceError)
An application source channel is closed.
RtspSourceError(RtspSourceError)
An RTSP source operation failed.
TestVideoSourceError(TestVideoSourceError)
A synthetic video source rejected an operation.
TestAudioSourceError(TestAudioSourceError)
A synthetic audio source rejected an operation.
SwDecoderError(SwDecoderError)
A software decoder operation failed.
SwEncoderError(SwEncoderError)
A software video encoder operation failed.
PacerError(PacerError)
A pacer could not schedule an input timestamp.
VideoSynchronizerError(VideoSynchronizerError)
A video synchronizer could not schedule an input frame.
SwAudioEncoderError(SwAudioEncoderError)
A software audio encoder operation failed.
AudioResamplerError(AudioResamplerError)
An audio resampling operation failed.
AudioVolumeError(AudioVolumeError)
An audio gain operation failed.
SwScalerError(SwScalerError)
A software scaling operation failed.
SwChromaKeyError(SwChromaKeyError)
A software chroma-key operation failed.
QueueError(QueueError)
A queue worker or capacity policy failed.
GraphError(GraphError)
A pipeline graph mutation violated a topology invariant.
LogInitError(LogInitError)
Private file logging could not be initialized.
AudioMixerError(AudioMixerError)
An audio mixer operation failed.
SwVideoCompositorError(SwVideoCompositorError)
A software video compositor operation failed.
Mp4MuxerError(Mp4MuxerError)
MP4 muxing failed.
HlsMuxerError(HlsMuxerError)
HLS muxing or option validation failed.
RtspSinkError(RtspSinkError)
Sending a stream to an RTSP endpoint failed.
OrtDetectorError(OrtDetectorError)
ort only.ONNX Runtime inference or detector processing failed.
WebRtcError(WebRtcError)
webrtc only.A WebRTC peer operation failed.
Ffmpeg(Error)
An FFmpeg error not assigned to a more specific element error.
Other(String)
An application-defined error message without a more specific category.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()