Enum mediasoup::prelude::ConsumeError
source · [−]pub enum ConsumeError {
ProducerNotFound(ProducerId),
FailedRtpCapabilitiesValidation(RtpCapabilitiesError),
BadConsumerRtpParameters(ConsumerRtpParametersError),
Request(RequestError),
}
Expand description
Error that caused Transport::consume
to fail.
Variants
ProducerNotFound(ProducerId)
Producer with specified id not found.
FailedRtpCapabilitiesValidation(RtpCapabilitiesError)
RTP capabilities error.
BadConsumerRtpParameters(ConsumerRtpParametersError)
Bad consumer RTP parameters.
Request(RequestError)
Request to worker failed.
Trait Implementations
sourceimpl Debug for ConsumeError
impl Debug for ConsumeError
sourceimpl Display for ConsumeError
impl Display for ConsumeError
sourceimpl Error for ConsumeError
impl Error for ConsumeError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<ConsumeError> for PipeProducerToRouterError
impl From<ConsumeError> for PipeProducerToRouterError
sourcefn from(error: ConsumeError) -> Self
fn from(error: ConsumeError) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<ConsumeError> for ConsumeError
impl PartialEq<ConsumeError> for ConsumeError
sourcefn eq(&self, other: &ConsumeError) -> bool
fn eq(&self, other: &ConsumeError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ConsumeError) -> bool
fn ne(&self, other: &ConsumeError) -> bool
This method tests for !=
.
impl Eq for ConsumeError
impl StructuralEq for ConsumeError
impl StructuralPartialEq for ConsumeError
Auto Trait Implementations
impl RefUnwindSafe for ConsumeError
impl Send for ConsumeError
impl Sync for ConsumeError
impl Unpin for ConsumeError
impl UnwindSafe for ConsumeError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more