#[repr(i32)]pub enum SipTransferReason {
StrUnspecified = 0,
StrCompleted = 1,
StrCallEnded = 2,
StrRejected = 3,
StrRingingTimeout = 4,
StrSubscriptionTerminated = 5,
StrCanceled = 6,
}Variants§
StrUnspecified = 0
No reason reported
StrCompleted = 1
The transferee answered and the transfer completed
StrCallEnded = 2
The call ended before the transfer completed: remote BYE, room deleted or local hangup
StrRejected = 3
The transferee, or its provider, rejected the transfer
StrRingingTimeout = 4
The transferee did not answer in time
StrSubscriptionTerminated = 5
The provider stopped reporting the transfer status without a final response
StrCanceled = 6
Canceled through the API
Implementations§
Source§impl SipTransferReason
impl SipTransferReason
Sourcepub const fn is_valid(value: i32) -> bool
pub const fn is_valid(value: i32) -> bool
Returns true if value is a variant of SipTransferReason.
Sourcepub fn from_i32(value: i32) -> Option<SipTransferReason>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<SipTransferReason>
Use the TryFrom<i32> implementation instead
Converts an i32 to a SipTransferReason, or None if value is not a valid variant.
Source§impl SipTransferReason
impl SipTransferReason
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.