#[non_exhaustive]
pub enum RtcError {
Show 15 variants
RemoteSdp(String),
Sdp(SdpError),
Rtp(RtpError),
Io(Error),
Dtls(DtlsError),
Packet(Mid, Pt, PacketError),
UnknownPt(Pt),
NoSenderSource,
NotSendingDirection(Direction),
NoReceiverSource(Option<Rid>),
FeedbackNotEnabled(KeyframeRequestKind),
Net(NetError),
Ice(IceError),
Sctp(SctpError),
Other(String),
}
Expand description
Errors for the whole Rtc engine.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
RemoteSdp(String)
Some problem with the remote SDP.
Sdp(SdpError)
SDP errors.
Rtp(RtpError)
RTP errors.
Io(Error)
Other IO errors.
Dtls(DtlsError)
DTLS errors
Packet(Mid, Pt, PacketError)
RTP packetization error
UnknownPt(Pt)
The PT attempted to write to is not known.
NoSenderSource
If MediaWriter.write fails because we can’t find an SSRC to use.
NotSendingDirection(Direction)
Direction does not allow sending of Media data.
NoReceiverSource(Option<Rid>)
If MediaWriter.request_keyframe fails because we can’t find an SSRC to use.
FeedbackNotEnabled(KeyframeRequestKind)
The keyframe request failed because the kind of request is not enabled by the SDP negotiation.
Net(NetError)
Parser errors from network packet parsing.
Ice(IceError)
ICE agent errors.
Sctp(SctpError)
SCTP (data channel engine) errors.
Other(String)
Some other error.
Trait Implementations§
source§impl Error for RtcError
impl Error for RtcError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()