#[non_exhaustive]pub enum Error {
InvalidSdp(String),
UnsupportedCodec(String),
SessionNotFound,
SessionClosed,
IceTimeout,
Io(Error),
Moq(Error),
Mux(Error),
Rtc(RtcError),
RtcInput(NetError),
Other(Error),
}Expand description
Errors produced by the WebRTC <-> MoQ gateway.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidSdp(String)
An SDP offer or answer failed to parse or was missing something required.
UnsupportedCodec(String)
The negotiated payload used a codec this gateway can’t bridge to MoQ.
SessionNotFound
No live session matched the resource id (e.g. a DELETE for an unknown id).
SessionClosed
The peer closed the session; the media session ended without a failure.
IceTimeout
ICE connectivity was not established before the establishment deadline.
Io(Error)
I/O error on the media socket (bind, send, or receive).
Moq(Error)
Error from the underlying moq-net transport.
Mux(Error)
Error from the moq-mux import/export layer bridging RTP and MoQ.
Rtc(RtcError)
Error from the str0m WebRTC engine (SDP negotiation, DTLS, media state).
RtcInput(NetError)
Error feeding a received UDP datagram into the str0m WebRTC engine.
Other(Error)
Catch-all for gateway logic that reports via anyhow.
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()