pub enum Error {
Show 28 variants
InvalidMethod,
InvalidHeader(String),
InvalidUri(String),
InvalidVersion,
InvalidStatusCode(u16),
InvalidFormat(String),
ParserWithLocation {
line: usize,
column: usize,
message: String,
},
Parser(String),
ParseError(String),
ContentLengthMismatch {
expected: usize,
actual: usize,
},
MissingHeader(String),
UnsupportedMediaType(String),
MalformedUriComponent {
component: String,
message: String,
},
SdpError(String),
SdpParsingError(String),
SdpValidationError(String),
Transport(String),
IncompleteParse(String),
IoError(String),
LineTooLong(usize),
TooManyHeaders(usize),
BodyTooLarge(usize),
Other(String),
InvalidInput(String),
SdpFormatError(String),
Utf8Error(Utf8Error),
InternalError(String),
BuilderError(String),
}
Expand description
Errors that can occur in SIP protocol handling
Variants§
InvalidMethod
Invalid SIP method
InvalidHeader(String)
Invalid SIP header syntax
InvalidUri(String)
Invalid SIP URI
InvalidVersion
Invalid SIP version
InvalidStatusCode(u16)
Invalid status code
InvalidFormat(String)
Invalid message format
ParserWithLocation
Parser error with location information
Fields
Parser(String)
Parser error
ParseError(String)
Parse error
ContentLengthMismatch
Content-Length mismatch
Fields
MissingHeader(String)
Missing required header
UnsupportedMediaType(String)
Unsupported media type
MalformedUriComponent
Malformed URI component
Fields
SdpError(String)
Error related to SDP processing
SdpParsingError(String)
Specific SDP parsing error
SdpValidationError(String)
SDP validation error
Transport(String)
Transport-specific error
IncompleteParse(String)
Incremental parsing error - not enough data
IoError(String)
Input/output error
LineTooLong(usize)
Line too long in SIP message
TooManyHeaders(usize)
Too many headers in SIP message
BodyTooLarge(usize)
Body too large in SIP message
Other(String)
Other error with message
InvalidInput(String)
Invalid input value
SdpFormatError(String)
SDP generation error
Utf8Error(Utf8Error)
Invalid UTF-8 sequence
InternalError(String)
Internal error
BuilderError(String)
Error related to message or header building
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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<FromUtf8Error> for Error
impl From<FromUtf8Error> for Error
Source§fn from(err: FromUtf8Error) -> Self
fn from(err: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for Error
impl From<ParseIntError> for Error
Source§fn from(err: ParseIntError) -> Self
fn from(err: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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