pub enum RvoipError {
NotImplemented(&'static str),
NoAdapterForTransport(Transport),
AdapterAlreadyRegistered(Transport),
ConnectionNotFound(ConnectionId),
SessionNotFound(SessionId),
ConversationNotFound(ConversationId),
BridgeNotFound(BridgeId),
AdmissionRejected(&'static str),
InvalidState(&'static str),
UnsupportedCodec(String),
Adapter(String),
Other(AnyhowCompat),
}Variants§
NotImplemented(&'static str)
NoAdapterForTransport(Transport)
AdapterAlreadyRegistered(Transport)
ConnectionNotFound(ConnectionId)
SessionNotFound(SessionId)
ConversationNotFound(ConversationId)
BridgeNotFound(BridgeId)
AdmissionRejected(&'static str)
InvalidState(&'static str)
Lifecycle precondition violated — e.g. start_session on a Closed Conversation, join_session on an Ended Session, end_session on an already-Ended Session. The message identifies which transition was rejected so callers can map it to a user-facing error.
UnsupportedCodec(String)
A codec name reached codec_to_pt that no RTP payload-type
mapping is registered for. Surfaces as a clear “this codec can’t
be bridged” diagnostic instead of being masked as a generic
transcoder error (carries the codec name for the operator).
Adapter(String)
Other(AnyhowCompat)
Implementations§
Source§impl RvoipError
impl RvoipError
pub const fn diagnostic_class(&self) -> &'static str
Trait Implementations§
Source§impl Debug for RvoipError
impl Debug for RvoipError
Source§impl Display for RvoipError
impl Display for RvoipError
Source§impl Error for RvoipError
impl Error for RvoipError
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<AnyhowCompat> for RvoipError
impl From<AnyhowCompat> for RvoipError
Source§fn from(error: AnyhowCompat) -> RvoipError
fn from(error: AnyhowCompat) -> RvoipError
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for RvoipError
impl !UnwindSafe for RvoipError
impl Freeze for RvoipError
impl Send for RvoipError
impl Sync for RvoipError
impl Unpin for RvoipError
impl UnsafeUnpin for RvoipError
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