Skip to main content

Error

Enum Error 

Source
pub enum Error {
Show 38 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), D3d12RendererError(D3d12RendererError), D3d12vaDecoderError(D3d12vaDecoderError), D3d12UploadError(D3d12UploadError), D3d11vaDecoderError(D3d11vaDecoderError), D3d11UploadError(D3d11UploadError), D3d11DownloadError(D3d11DownloadError), D3d11NvencEncoderError(D3d11NvencEncoderError), D3d11RendererError(D3d11RendererError), D3d11VideoCompositorError(D3d11VideoCompositorError), D3d11TextLayerError(D3d11TextLayerError), DxgiCaptureSourceError(DxgiCaptureSourceError), WasapiCaptureSourceError(WasapiCaptureSourceError), WasapiRendererError(WasapiRendererError), 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)

§

D3d12RendererError(D3d12RendererError)

Available on Windows and crate feature d3d12 only.
§

D3d12vaDecoderError(D3d12vaDecoderError)

Available on Windows and crate feature d3d12 only.
§

D3d12UploadError(D3d12UploadError)

Available on Windows and crate feature d3d12 only.
§

D3d11vaDecoderError(D3d11vaDecoderError)

Available on Windows and crate feature d3d11 only.
§

D3d11UploadError(D3d11UploadError)

Available on Windows and crate feature d3d11 only.
§

D3d11DownloadError(D3d11DownloadError)

Available on Windows and crate feature d3d11 only.
§

D3d11NvencEncoderError(D3d11NvencEncoderError)

Available on Windows and crate feature d3d11 only.
§

D3d11RendererError(D3d11RendererError)

Available on Windows and crate feature d3d11 only.
§

D3d11VideoCompositorError(D3d11VideoCompositorError)

Available on Windows and crate feature d3d11 only.
§

D3d11TextLayerError(D3d11TextLayerError)

Available on Windows and crate feature d3d11 only.
§

DxgiCaptureSourceError(DxgiCaptureSourceError)

Available on Windows and crate feature dxgi-capture only.
§

WasapiCaptureSourceError(WasapiCaptureSourceError)

Available on Windows and crate feature wasapi-capture only.
§

WasapiRendererError(WasapiRendererError)

Available on Windows and crate feature wasapi-renderer only.
§

OrtDetectorError(OrtDetectorError)

Available on crate feature ort only.
§

WebRtcError(WebRtcError)

Available on crate feature webrtc only.
§

Ffmpeg(Error)

§

Other(String)

Trait Implementations§

Source§

impl Debug for Error

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Error

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for Error

Source§

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

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<AppSourceError> for Error

Source§

fn from(source: AppSourceError) -> Self

Converts to this type from the input type.
Source§

impl From<AudioMixerError> for Error

Source§

fn from(source: AudioMixerError) -> Self

Converts to this type from the input type.
Source§

impl From<AudioResamplerError> for Error

Source§

fn from(source: AudioResamplerError) -> Self

Converts to this type from the input type.
Source§

impl From<AudioVolumeError> for Error

Source§

fn from(source: AudioVolumeError) -> Self

Converts to this type from the input type.
Source§

impl From<D3d11DownloadError> for Error

Source§

fn from(source: D3d11DownloadError) -> Self

Converts to this type from the input type.
Source§

impl From<D3d11NvencEncoderError> for Error

Source§

fn from(source: D3d11NvencEncoderError) -> Self

Converts to this type from the input type.
Source§

impl From<D3d11RendererError> for Error

Source§

fn from(source: D3d11RendererError) -> Self

Converts to this type from the input type.
Source§

impl From<D3d11TextLayerError> for Error

Source§

fn from(source: D3d11TextLayerError) -> Self

Converts to this type from the input type.
Source§

impl From<D3d11UploadError> for Error

Source§

fn from(source: D3d11UploadError) -> Self

Converts to this type from the input type.
Source§

impl From<D3d11VideoCompositorError> for Error

Source§

fn from(source: D3d11VideoCompositorError) -> Self

Converts to this type from the input type.
Source§

impl From<D3d11vaDecoderError> for Error

Source§

fn from(source: D3d11vaDecoderError) -> Self

Converts to this type from the input type.
Source§

impl From<D3d12RendererError> for Error

Source§

fn from(source: D3d12RendererError) -> Self

Converts to this type from the input type.
Source§

impl From<D3d12UploadError> for Error

Source§

fn from(source: D3d12UploadError) -> Self

Converts to this type from the input type.
Source§

impl From<D3d12vaDecoderError> for Error

Source§

fn from(source: D3d12vaDecoderError) -> Self

Converts to this type from the input type.
Source§

impl From<DxgiCaptureSourceError> for Error

Source§

fn from(source: DxgiCaptureSourceError) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<FileDemuxError> for Error

Source§

fn from(source: FileDemuxError) -> Self

Converts to this type from the input type.
Source§

impl From<GraphError> for Error

Source§

fn from(source: GraphError) -> Self

Converts to this type from the input type.
Source§

impl From<HlsMuxerError> for Error

Source§

fn from(source: HlsMuxerError) -> Self

Converts to this type from the input type.
Source§

impl From<LogInitError> for Error

Source§

fn from(source: LogInitError) -> Self

Converts to this type from the input type.
Source§

impl From<Mp4MuxerError> for Error

Source§

fn from(source: Mp4MuxerError) -> Self

Converts to this type from the input type.
Source§

impl From<OrtDetectorError> for Error

Source§

fn from(source: OrtDetectorError) -> Self

Converts to this type from the input type.
Source§

impl From<PacerError> for Error

Source§

fn from(source: PacerError) -> Self

Converts to this type from the input type.
Source§

impl From<QueueError> for Error

Source§

fn from(source: QueueError) -> Self

Converts to this type from the input type.
Source§

impl From<RtspSinkError> for Error

Source§

fn from(source: RtspSinkError) -> Self

Converts to this type from the input type.
Source§

impl From<RtspSourceError> for Error

Source§

fn from(source: RtspSourceError) -> Self

Converts to this type from the input type.
Source§

impl From<ScalerError> for Error

Source§

fn from(source: ScalerError) -> Self

Converts to this type from the input type.
Source§

impl From<SwAudioEncoderError> for Error

Source§

fn from(source: SwAudioEncoderError) -> Self

Converts to this type from the input type.
Source§

impl From<SwDecoderError> for Error

Source§

fn from(source: SwDecoderError) -> Self

Converts to this type from the input type.
Source§

impl From<SwEncoderError> for Error

Source§

fn from(source: SwEncoderError) -> Self

Converts to this type from the input type.
Source§

impl From<TestAudioSourceError> for Error

Source§

fn from(source: TestAudioSourceError) -> Self

Converts to this type from the input type.
Source§

impl From<TestVideoSourceError> for Error

Source§

fn from(source: TestVideoSourceError) -> Self

Converts to this type from the input type.
Source§

impl From<VideoCompositorError> for Error

Source§

fn from(source: VideoCompositorError) -> Self

Converts to this type from the input type.
Source§

impl From<VideoSynchronizerError> for Error

Source§

fn from(source: VideoSynchronizerError) -> Self

Converts to this type from the input type.
Source§

impl From<WasapiCaptureSourceError> for Error

Source§

fn from(source: WasapiCaptureSourceError) -> Self

Converts to this type from the input type.
Source§

impl From<WasapiRendererError> for Error

Source§

fn from(source: WasapiRendererError) -> Self

Converts to this type from the input type.
Source§

impl From<WebRtcError> for Error

Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<T> CryptoSafe for T
where T: Send + Sync + Debug,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more