#[repr(i32)]pub enum SipStatusCode {
Show 49 variants
SipStatusUnknown = 0,
SipStatusTrying = 100,
SipStatusRinging = 180,
SipStatusCallIsForwarded = 181,
SipStatusQueued = 182,
SipStatusSessionProgress = 183,
SipStatusOk = 200,
SipStatusAccepted = 202,
SipStatusMovedPermanently = 301,
SipStatusMovedTemporarily = 302,
SipStatusUseProxy = 305,
SipStatusBadRequest = 400,
SipStatusUnauthorized = 401,
SipStatusPaymentRequired = 402,
SipStatusForbidden = 403,
SipStatusNotfound = 404,
SipStatusMethodNotAllowed = 405,
SipStatusNotAcceptable = 406,
SipStatusProxyAuthRequired = 407,
SipStatusRequestTimeout = 408,
SipStatusConflict = 409,
SipStatusGone = 410,
SipStatusRequestEntityTooLarge = 413,
SipStatusRequestUriTooLong = 414,
SipStatusUnsupportedMediaType = 415,
SipStatusRequestedRangeNotSatisfiable = 416,
SipStatusBadExtension = 420,
SipStatusExtensionRequired = 421,
SipStatusIntervalTooBrief = 423,
SipStatusTemporarilyUnavailable = 480,
SipStatusCallTransactionDoesNotExists = 481,
SipStatusLoopDetected = 482,
SipStatusTooManyHops = 483,
SipStatusAddressIncomplete = 484,
SipStatusAmbiguous = 485,
SipStatusBusyHere = 486,
SipStatusRequestTerminated = 487,
SipStatusNotAcceptableHere = 488,
SipStatusInternalServerError = 500,
SipStatusNotImplemented = 501,
SipStatusBadGateway = 502,
SipStatusServiceUnavailable = 503,
SipStatusGatewayTimeout = 504,
SipStatusVersionNotSupported = 505,
SipStatusMessageTooLarge = 513,
SipStatusGlobalBusyEverywhere = 600,
SipStatusGlobalDecline = 603,
SipStatusGlobalDoesNotExistAnywhere = 604,
SipStatusGlobalNotAcceptable = 606,
}
Variants§
SipStatusUnknown = 0
SipStatusTrying = 100
SipStatusRinging = 180
SipStatusCallIsForwarded = 181
SipStatusQueued = 182
SipStatusSessionProgress = 183
SipStatusOk = 200
SipStatusAccepted = 202
SipStatusMovedPermanently = 301
SipStatusMovedTemporarily = 302
SipStatusUseProxy = 305
SipStatusBadRequest = 400
SipStatusPaymentRequired = 402
SipStatusForbidden = 403
SipStatusNotfound = 404
SipStatusMethodNotAllowed = 405
SipStatusNotAcceptable = 406
SipStatusProxyAuthRequired = 407
SipStatusRequestTimeout = 408
SipStatusConflict = 409
SipStatusGone = 410
SipStatusRequestEntityTooLarge = 413
SipStatusRequestUriTooLong = 414
SipStatusUnsupportedMediaType = 415
SipStatusRequestedRangeNotSatisfiable = 416
SipStatusBadExtension = 420
SipStatusExtensionRequired = 421
SipStatusIntervalTooBrief = 423
SipStatusCallTransactionDoesNotExists = 481
SipStatusLoopDetected = 482
SipStatusTooManyHops = 483
SipStatusAddressIncomplete = 484
SipStatusAmbiguous = 485
SipStatusBusyHere = 486
SipStatusRequestTerminated = 487
SipStatusNotAcceptableHere = 488
SipStatusInternalServerError = 500
SipStatusNotImplemented = 501
SipStatusBadGateway = 502
SipStatusGatewayTimeout = 504
SipStatusVersionNotSupported = 505
SipStatusMessageTooLarge = 513
SipStatusGlobalBusyEverywhere = 600
SipStatusGlobalDecline = 603
SipStatusGlobalDoesNotExistAnywhere = 604
SipStatusGlobalNotAcceptable = 606
Implementations§
Source§impl SipStatusCode
impl SipStatusCode
Source§impl SipStatusCode
impl SipStatusCode
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for SipStatusCode
impl Clone for SipStatusCode
Source§fn clone(&self) -> SipStatusCode
fn clone(&self) -> SipStatusCode
Returns a copy 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 SipStatusCode
impl Debug for SipStatusCode
Source§impl Default for SipStatusCode
impl Default for SipStatusCode
Source§fn default() -> SipStatusCode
fn default() -> SipStatusCode
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for SipStatusCode
impl<'de> Deserialize<'de> for SipStatusCode
§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<SipStatusCode> for i32
impl From<SipStatusCode> for i32
Source§fn from(value: SipStatusCode) -> i32
fn from(value: SipStatusCode) -> i32
Converts to this type from the input type.
Source§impl Hash for SipStatusCode
impl Hash for SipStatusCode
Source§impl Ord for SipStatusCode
impl Ord for SipStatusCode
Source§fn cmp(&self, other: &SipStatusCode) -> Ordering
fn cmp(&self, other: &SipStatusCode) -> 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 SipStatusCode
impl PartialEq for SipStatusCode
Source§impl PartialOrd for SipStatusCode
impl PartialOrd for SipStatusCode
§impl Serialize for SipStatusCode
impl Serialize for SipStatusCode
Source§impl TryFrom<i32> for SipStatusCode
impl TryFrom<i32> for SipStatusCode
Source§type Error = DecodeError
type Error = DecodeError
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<SipStatusCode, DecodeError>
fn try_from(value: i32) -> Result<SipStatusCode, DecodeError>
Performs the conversion.
impl Copy for SipStatusCode
impl Eq for SipStatusCode
impl StructuralPartialEq for SipStatusCode
Auto Trait Implementations§
impl Freeze for SipStatusCode
impl RefUnwindSafe for SipStatusCode
impl Send for SipStatusCode
impl Sync for SipStatusCode
impl Unpin for SipStatusCode
impl UnwindSafe for SipStatusCode
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