#[non_exhaustive]pub enum SetupError {
PacketDurationTooShort(Duration),
RtcpIntervalTooShort(Duration),
RtcpMuxPayloadCollision(u8),
Codec {
codec: Codec,
direction: CodecDirection,
reason: String,
},
}Expand description
A negotiated media session that cannot be constructed safely.
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.
PacketDurationTooShort(Duration)
Packet pacing cannot represent a frame shorter than one millisecond.
RtcpIntervalTooShort(Duration)
A configured RTCP timer must make forward progress.
RtcpMuxPayloadCollision(u8)
RFC 5761 cannot distinguish this marked RTP payload from an RTCP packet type.
Codec
The codec agreed through SDP could not create one of its stateful directions.
Trait Implementations§
Source§impl Debug for SetupError
impl Debug for SetupError
Source§impl Display for SetupError
impl Display for SetupError
Source§impl Error for SetupError
impl Error for SetupError
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()
Source§impl From<SetupError> for BrowserStartError
impl From<SetupError> for BrowserStartError
Source§fn from(source: SetupError) -> Self
fn from(source: SetupError) -> Self
Converts to this type from the input type.
Source§impl From<SetupError> for StartError
impl From<SetupError> for StartError
Source§fn from(source: SetupError) -> Self
fn from(source: SetupError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SetupError
impl RefUnwindSafe for SetupError
impl Send for SetupError
impl Sync for SetupError
impl Unpin for SetupError
impl UnsafeUnpin for SetupError
impl UnwindSafe for SetupError
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more