pub enum SipClientError {
Show 18 variants
ClientCore(ClientError),
AudioCore(AudioError),
CodecCore(CodecError),
Configuration {
message: String,
},
InvalidState {
message: String,
},
CallNotFound {
call_id: String,
},
AudioDevice {
message: String,
},
AudioPipelineError {
operation: String,
details: String,
},
CodecNegotiationFailed {
reason: String,
},
Network {
message: String,
},
Timeout {
seconds: u64,
},
NotImplemented {
feature: String,
},
Internal {
message: String,
},
RegistrationFailed {
reason: String,
},
CallFailed {
call_id: String,
reason: String,
},
CodecError {
codec: String,
details: String,
},
InvalidInput {
field: String,
reason: String,
},
TransferFailed {
reason: String,
},
}
Expand description
Errors that can occur in the SIP client
Variants§
ClientCore(ClientError)
Client-core error
AudioCore(AudioError)
Audio-core error
CodecCore(CodecError)
Codec-core error
Configuration
Configuration error
InvalidState
Invalid state error
CallNotFound
Call not found
AudioDevice
Audio device error
AudioPipelineError
Audio pipeline error
CodecNegotiationFailed
Codec negotiation failed
Network
Network error
Timeout
Timeout error
NotImplemented
Not implemented
Internal
Internal error
RegistrationFailed
Registration failed
CallFailed
Call failed
CodecError
Codec error with details
InvalidInput
Invalid input
TransferFailed
Transfer failed
Implementations§
Source§impl SipClientError
impl SipClientError
Sourcepub fn invalid_state(message: impl Into<String>) -> Self
pub fn invalid_state(message: impl Into<String>) -> Self
Create an invalid state error with expected and actual state
Sourcepub fn invalid_state_with_details(expected: &str, actual: &str) -> Self
pub fn invalid_state_with_details(expected: &str, actual: &str) -> Self
Create an invalid state error with expected and actual values
Sourcepub fn audio_device(message: impl Into<String>) -> Self
pub fn audio_device(message: impl Into<String>) -> Self
Create an audio device error
Sourcepub fn codec_negotiation(reason: impl Into<String>) -> Self
pub fn codec_negotiation(reason: impl Into<String>) -> Self
Create a codec negotiation error
Trait Implementations§
Source§impl Debug for SipClientError
impl Debug for SipClientError
Source§impl Display for SipClientError
impl Display for SipClientError
Source§impl Error for SipClientError
impl Error for SipClientError
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 ErrorReportingExt for SipClientError
impl ErrorReportingExt for SipClientError
Source§fn enhance(&self) -> ErrorContext
fn enhance(&self) -> ErrorContext
Get enhanced error context
Source§fn user_message(&self) -> String
fn user_message(&self) -> String
Get user-friendly error message
Source§impl From<AudioError> for SipClientError
impl From<AudioError> for SipClientError
Source§fn from(source: AudioError) -> Self
fn from(source: AudioError) -> Self
Converts to this type from the input type.
Source§impl From<ClientError> for SipClientError
impl From<ClientError> for SipClientError
Source§fn from(source: ClientError) -> Self
fn from(source: ClientError) -> Self
Converts to this type from the input type.
Source§impl From<CodecError> for SipClientError
impl From<CodecError> for SipClientError
Source§fn from(source: CodecError) -> Self
fn from(source: CodecError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SipClientError
impl RefUnwindSafe for SipClientError
impl Send for SipClientError
impl Sync for SipClientError
impl Unpin for SipClientError
impl UnwindSafe for SipClientError
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