pub enum WebRtcError {
Str0m(RtcError),
Io(Error),
UnsupportedBuffer(&'static str),
MissingPacketPts,
NegativePacketPts(i64),
InvalidPacketTimeBase {
numerator: i32,
denominator: i32,
},
PacketTimestampOverflow {
pts: u64,
numerator: i32,
denominator: i32,
},
Closed,
}Available on crate feature
webrtc only.Expand description
Errors specific to WebRtcPeer/WebRtcHandle/WebRtcTrackSink.
Converts into the crate-wide Error via ? (see crate::error::Error).
Variants§
Str0m(RtcError)
Io(Error)
UnsupportedBuffer(&'static str)
MissingPacketPts
NegativePacketPts(i64)
InvalidPacketTimeBase
PacketTimestampOverflow
Closed
Trait Implementations§
Source§impl Debug for WebRtcError
impl Debug for WebRtcError
Source§impl Display for WebRtcError
impl Display for WebRtcError
Source§impl Error for WebRtcError
impl Error for WebRtcError
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()
Source§impl From<Error> for WebRtcError
impl From<Error> for WebRtcError
Source§impl From<RtcError> for WebRtcError
impl From<RtcError> for WebRtcError
Source§impl From<WebRtcError> for Error
impl From<WebRtcError> for Error
Source§fn from(source: WebRtcError) -> Self
fn from(source: WebRtcError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for WebRtcError
impl !UnwindSafe for WebRtcError
impl Freeze for WebRtcError
impl Send for WebRtcError
impl Sync for WebRtcError
impl Unpin for WebRtcError
impl UnsafeUnpin for WebRtcError
Blanket Implementations§
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