pub enum Error {
Show 25 variants
FileDemuxError(FileDemuxError),
AppSourceError(AppSourceError),
RtspSourceError(RtspSourceError),
TestVideoSourceError(TestVideoSourceError),
TestAudioSourceError(TestAudioSourceError),
SwDecoderError(SwDecoderError),
SwEncoderError(SwEncoderError),
PacerError(PacerError),
VideoSynchronizerError(VideoSynchronizerError),
SwAudioEncoderError(SwAudioEncoderError),
AudioResamplerError(AudioResamplerError),
AudioVolumeError(AudioVolumeError),
ScalerError(ScalerError),
QueueError(QueueError),
GraphError(GraphError),
LogInitError(LogInitError),
AudioMixerError(AudioMixerError),
VideoCompositorError(VideoCompositorError),
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§
FileDemuxError(FileDemuxError)
AppSourceError(AppSourceError)
RtspSourceError(RtspSourceError)
TestVideoSourceError(TestVideoSourceError)
TestAudioSourceError(TestAudioSourceError)
SwDecoderError(SwDecoderError)
SwEncoderError(SwEncoderError)
PacerError(PacerError)
VideoSynchronizerError(VideoSynchronizerError)
SwAudioEncoderError(SwAudioEncoderError)
AudioResamplerError(AudioResamplerError)
AudioVolumeError(AudioVolumeError)
ScalerError(ScalerError)
QueueError(QueueError)
GraphError(GraphError)
LogInitError(LogInitError)
AudioMixerError(AudioMixerError)
VideoCompositorError(VideoCompositorError)
Mp4MuxerError(Mp4MuxerError)
HlsMuxerError(HlsMuxerError)
RtspSinkError(RtspSinkError)
OrtDetectorError(OrtDetectorError)
Available on crate feature
ort only.WebRtcError(WebRtcError)
Available on crate feature
webrtc only.Ffmpeg(Error)
Other(String)
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)>
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<AppSourceError> for Error
impl From<AppSourceError> for Error
Source§fn from(source: AppSourceError) -> Self
fn from(source: AppSourceError) -> Self
Converts to this type from the input type.
Source§impl From<AudioMixerError> for Error
impl From<AudioMixerError> for Error
Source§fn from(source: AudioMixerError) -> Self
fn from(source: AudioMixerError) -> Self
Converts to this type from the input type.
Source§impl From<AudioResamplerError> for Error
impl From<AudioResamplerError> for Error
Source§fn from(source: AudioResamplerError) -> Self
fn from(source: AudioResamplerError) -> Self
Converts to this type from the input type.
Source§impl From<AudioVolumeError> for Error
impl From<AudioVolumeError> for Error
Source§fn from(source: AudioVolumeError) -> Self
fn from(source: AudioVolumeError) -> Self
Converts to this type from the input type.
Source§impl From<FileDemuxError> for Error
impl From<FileDemuxError> for Error
Source§fn from(source: FileDemuxError) -> Self
fn from(source: FileDemuxError) -> Self
Converts to this type from the input type.
Source§impl From<GraphError> for Error
impl From<GraphError> for Error
Source§fn from(source: GraphError) -> Self
fn from(source: GraphError) -> Self
Converts to this type from the input type.
Source§impl From<HlsMuxerError> for Error
impl From<HlsMuxerError> for Error
Source§fn from(source: HlsMuxerError) -> Self
fn from(source: HlsMuxerError) -> Self
Converts to this type from the input type.
Source§impl From<LogInitError> for Error
impl From<LogInitError> for Error
Source§fn from(source: LogInitError) -> Self
fn from(source: LogInitError) -> Self
Converts to this type from the input type.
Source§impl From<Mp4MuxerError> for Error
impl From<Mp4MuxerError> for Error
Source§fn from(source: Mp4MuxerError) -> Self
fn from(source: Mp4MuxerError) -> Self
Converts to this type from the input type.
Source§impl From<OrtDetectorError> for Error
impl From<OrtDetectorError> for Error
Source§fn from(source: OrtDetectorError) -> Self
fn from(source: OrtDetectorError) -> Self
Converts to this type from the input type.
Source§impl From<PacerError> for Error
impl From<PacerError> for Error
Source§fn from(source: PacerError) -> Self
fn from(source: PacerError) -> Self
Converts to this type from the input type.
Source§impl From<QueueError> for Error
impl From<QueueError> for Error
Source§fn from(source: QueueError) -> Self
fn from(source: QueueError) -> Self
Converts to this type from the input type.
Source§impl From<RtspSinkError> for Error
impl From<RtspSinkError> for Error
Source§fn from(source: RtspSinkError) -> Self
fn from(source: RtspSinkError) -> Self
Converts to this type from the input type.
Source§impl From<RtspSourceError> for Error
impl From<RtspSourceError> for Error
Source§fn from(source: RtspSourceError) -> Self
fn from(source: RtspSourceError) -> Self
Converts to this type from the input type.
Source§impl From<ScalerError> for Error
impl From<ScalerError> for Error
Source§fn from(source: ScalerError) -> Self
fn from(source: ScalerError) -> Self
Converts to this type from the input type.
Source§impl From<SwAudioEncoderError> for Error
impl From<SwAudioEncoderError> for Error
Source§fn from(source: SwAudioEncoderError) -> Self
fn from(source: SwAudioEncoderError) -> Self
Converts to this type from the input type.
Source§impl From<SwDecoderError> for Error
impl From<SwDecoderError> for Error
Source§fn from(source: SwDecoderError) -> Self
fn from(source: SwDecoderError) -> Self
Converts to this type from the input type.
Source§impl From<SwEncoderError> for Error
impl From<SwEncoderError> for Error
Source§fn from(source: SwEncoderError) -> Self
fn from(source: SwEncoderError) -> Self
Converts to this type from the input type.
Source§impl From<TestAudioSourceError> for Error
impl From<TestAudioSourceError> for Error
Source§fn from(source: TestAudioSourceError) -> Self
fn from(source: TestAudioSourceError) -> Self
Converts to this type from the input type.
Source§impl From<TestVideoSourceError> for Error
impl From<TestVideoSourceError> for Error
Source§fn from(source: TestVideoSourceError) -> Self
fn from(source: TestVideoSourceError) -> Self
Converts to this type from the input type.
Source§impl From<VideoCompositorError> for Error
impl From<VideoCompositorError> for Error
Source§fn from(source: VideoCompositorError) -> Self
fn from(source: VideoCompositorError) -> Self
Converts to this type from the input type.
Source§impl From<VideoSynchronizerError> for Error
impl From<VideoSynchronizerError> for Error
Source§fn from(source: VideoSynchronizerError) -> Self
fn from(source: VideoSynchronizerError) -> Self
Converts to this type from the input type.
Source§impl From<WebRtcError> for Error
impl From<WebRtcError> for Error
Source§fn from(source: WebRtcError) -> Self
fn from(source: WebRtcError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
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