pub enum StatusCode {
Show 74 variants
Trying,
Ringing,
CallIsBeingForwarded,
Queued,
SessionProgress,
EarlyDialogTerminated,
OK,
Accepted,
NoNotification,
MultipleChoices,
MovedPermanently,
MovedTemporarily,
UseProxy,
AlternativeService,
BadRequest,
Unauthorized,
PaymentRequired,
Forbidden,
NotFound,
MethodNotAllowed,
NotAcceptable,
ProxyAuthenticationRequired,
RequestTimeout,
Conflict,
Gone,
LengthRequired,
ConditionalRequestFailed,
RequestEntityTooLarge,
RequestUriTooLong,
UnsupportedMediaType,
UnsupportedUriScheme,
UnknownResourcePriority,
BadExtension,
ExtensionRequired,
SessionIntervalTooSmall,
IntervalTooBrief,
BadLocationInformation,
UseIdentityHeader,
ProvideReferrerIdentity,
AnonymityDisallowed,
BadIdentityInfo,
UnsupportedCertificate,
InvalidIdentityHeader,
FirstHopLacksOutboundSupport,
MaxBreadthExceeded,
BadInfoPackage,
ConsentNeeded,
TemporarilyUnavailable,
CallTransactionDoesNotExist,
LoopDetected,
TooManyHops,
AddressIncomplete,
Ambiguous,
BusyHere,
RequestTerminated,
NotAcceptableHere,
BadEvent,
RequestPending,
Undecipherable,
SecurityAgreementRequired,
ServerInternalError,
NotImplemented,
BadGateway,
ServiceUnavailable,
ServerTimeOut,
VersionNotSupported,
MessageTooLarge,
PreconditionFailure,
BusyEverywhere,
Decline,
DoesNotExistAnywhere,
NotAcceptableGlobal,
Unwanted,
Other(u16, String),
}Expand description
The SIP Response status code (or response code as SIP main
RFC refers to them). This is not a Copy type because in case of an unknown (= not
defined in any SIP RFC) status code, the reason is also provided inside the Other
tuple variant.
Variants§
Trying
Ringing
CallIsBeingForwarded
Queued
SessionProgress
EarlyDialogTerminated
OK
Accepted
NoNotification
MultipleChoices
MovedPermanently
MovedTemporarily
UseProxy
AlternativeService
BadRequest
PaymentRequired
Forbidden
NotFound
MethodNotAllowed
NotAcceptable
ProxyAuthenticationRequired
RequestTimeout
Conflict
Gone
LengthRequired
ConditionalRequestFailed
RequestEntityTooLarge
RequestUriTooLong
UnsupportedMediaType
UnsupportedUriScheme
UnknownResourcePriority
BadExtension
ExtensionRequired
SessionIntervalTooSmall
IntervalTooBrief
BadLocationInformation
UseIdentityHeader
ProvideReferrerIdentity
AnonymityDisallowed
BadIdentityInfo
UnsupportedCertificate
InvalidIdentityHeader
FirstHopLacksOutboundSupport
MaxBreadthExceeded
BadInfoPackage
ConsentNeeded
CallTransactionDoesNotExist
LoopDetected
TooManyHops
AddressIncomplete
Ambiguous
BusyHere
RequestTerminated
NotAcceptableHere
BadEvent
RequestPending
Undecipherable
SecurityAgreementRequired
ServerInternalError
NotImplemented
BadGateway
ServerTimeOut
VersionNotSupported
MessageTooLarge
PreconditionFailure
BusyEverywhere
Decline
DoesNotExistAnywhere
NotAcceptableGlobal
Unwanted
Other(u16, String)
Implementations§
Source§impl StatusCode
impl StatusCode
pub fn kind(&self) -> StatusCodeKind
Trait Implementations§
Source§impl Clone for StatusCode
impl Clone for StatusCode
Source§fn clone(&self) -> StatusCode
fn clone(&self) -> StatusCode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StatusCode
impl Debug for StatusCode
Source§impl Default for StatusCode
impl Default for StatusCode
Source§impl Display for StatusCode
impl Display for StatusCode
Source§impl From<StatusCode> for u16
impl From<StatusCode> for u16
Source§fn from(from: StatusCode) -> u16
fn from(from: StatusCode) -> u16
Converts to this type from the input type.
Source§impl From<u16> for StatusCode
impl From<u16> for StatusCode
Source§impl Ord for StatusCode
impl Ord for StatusCode
Source§fn cmp(&self, other: &StatusCode) -> Ordering
fn cmp(&self, other: &StatusCode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for StatusCode
impl PartialEq for StatusCode
Source§impl PartialOrd for StatusCode
impl PartialOrd for StatusCode
impl Eq for StatusCode
impl StructuralPartialEq for StatusCode
Auto Trait Implementations§
impl Freeze for StatusCode
impl RefUnwindSafe for StatusCode
impl Send for StatusCode
impl Sync for StatusCode
impl Unpin for StatusCode
impl UnwindSafe for StatusCode
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