pub enum Error {
Show 27 variants
EncodeError(String),
DecodeError(String),
InvalidPacket(String),
BufferTooSmall {
required: usize,
available: usize,
},
InvalidParameter(String),
IoError(String),
RtcpError(String),
SessionError(String),
Transport(String),
ParseError(String),
SrtpError(String),
StatsError(String),
TimingError(String),
InvalidProtocolVersion(String),
UnsupportedFeature(String),
NotImplemented(String),
InvalidState(String),
DtlsHandshakeError(String),
DtlsAlertReceived(String),
CertificateValidationError(String),
CryptoError(String),
InvalidMessage(String),
AuthenticationFailed(String),
NegotiationFailed(String),
PacketTooShort,
Timeout(String),
SerializationError(String),
}Expand description
Error type for RTP operations
Variants§
EncodeError(String)
Error when encoding RTP packet
DecodeError(String)
Error when decoding RTP packet
InvalidPacket(String)
Invalid packet format
BufferTooSmall
Buffer too small
InvalidParameter(String)
Invalid parameter for RTP operation
IoError(String)
IO error when sending/receiving RTP packets
RtcpError(String)
RTCP error
SessionError(String)
Session error
Transport(String)
Transport error
ParseError(String)
Parsing error
SrtpError(String)
SRTP error
StatsError(String)
Statistics error
TimingError(String)
Timing error
InvalidProtocolVersion(String)
Invalid protocol version
UnsupportedFeature(String)
Unsupported feature
NotImplemented(String)
Not implemented yet
InvalidState(String)
Invalid state for operation
DtlsHandshakeError(String)
DTLS handshake error
DtlsAlertReceived(String)
DTLS alert received
CertificateValidationError(String)
Certificate validation error
CryptoError(String)
Cryptographic operation error
InvalidMessage(String)
Invalid message format or content
AuthenticationFailed(String)
Authentication failed
NegotiationFailed(String)
Negotiation failed
PacketTooShort
Packet too short
Timeout(String)
Timeout error
SerializationError(String)
Serialization error
Trait Implementations§
Source§impl Error for Error
impl Error for Error
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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