pub enum MediaError {
ConnectionFailed {
url: String,
detail: String,
},
DecodeFailed {
detail: String,
},
Eos,
Timeout,
Unsupported {
detail: String,
},
InsecureRtspRejected,
CustomPipelineRejected,
}Expand description
Errors from the media ingress layer (source connection, decoding).
Clone is derived so that the same typed error can be delivered to
both the health-event path and the frame-sink callback without
downgrading one copy to a lossy display string.
Security: The Display implementation redacts credentials from
URLs and sanitizes untrusted backend strings. This means log output
and health events never contain raw secrets.
Variants§
ConnectionFailed
Failed to connect to the video source.
DecodeFailed
Decoding a video frame failed.
Eos
End of stream reached (file sources).
Timeout
Source timed out (no data received within deadline).
Unsupported
The source format or codec is not supported.
InsecureRtspRejected
An RTSP source with RequireTls policy was given a non-TLS URL.
CustomPipelineRejected
A SourceSpec::Custom pipeline was rejected by the security policy.
Trait Implementations§
Source§impl Clone for MediaError
impl Clone for MediaError
Source§fn clone(&self) -> MediaError
fn clone(&self) -> MediaError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MediaError
impl Debug for MediaError
Source§impl Display for MediaError
impl Display for MediaError
Source§impl Error for MediaError
impl Error for MediaError
1.30.0 · 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()