#[repr(i32)]pub enum SipDialtone {
Disabled = 0,
Etsi = 1,
Auto = 2,
Us = 3,
Uk = 4,
Jp = 5,
Au = 6,
}Expand description
Dial tone (ringback) played while a call is being placed or transferred. Receivers treat unknown values as SIP_DIALTONE_ETSI.
Variants§
Disabled = 0
no tone
Etsi = 1
425 Hz, 1s on / 4s off; the tone play_dialtone used
Auto = 2
pick by the country of the called number, ETSI if unknown
Us = 3
North America (NANP)
Uk = 4
Jp = 5
Au = 6
Implementations§
Source§impl SipDialtone
impl SipDialtone
Source§impl SipDialtone
impl SipDialtone
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 SipDialtone
impl Clone for SipDialtone
impl Copy for SipDialtone
Source§impl Debug for SipDialtone
impl Debug for SipDialtone
Source§impl Default for SipDialtone
impl Default for SipDialtone
Source§fn default() -> SipDialtone
fn default() -> SipDialtone
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for SipDialtone
impl<'de> Deserialize<'de> for SipDialtone
§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
impl Eq for SipDialtone
Source§impl From<SipDialtone> for i32
impl From<SipDialtone> for i32
Source§fn from(value: SipDialtone) -> i32
fn from(value: SipDialtone) -> i32
Converts to this type from the input type.
Source§impl Hash for SipDialtone
impl Hash for SipDialtone
Source§impl Ord for SipDialtone
impl Ord for SipDialtone
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for SipDialtone
impl PartialEq for SipDialtone
Source§impl PartialOrd for SipDialtone
impl PartialOrd for SipDialtone
§impl Serialize for SipDialtone
impl Serialize for SipDialtone
impl StructuralPartialEq for SipDialtone
Source§impl TryFrom<i32> for SipDialtone
impl TryFrom<i32> for SipDialtone
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<SipDialtone, UnknownEnumValue>
fn try_from(value: i32) -> Result<SipDialtone, UnknownEnumValue>
Performs the conversion.
Auto Trait Implementations§
impl Forget for SipDialtone
impl Freeze for SipDialtone
impl Move for SipDialtone
impl RefUnwindSafe for SipDialtone
impl Send for SipDialtone
impl Sync for SipDialtone
impl Unpin for SipDialtone
impl UnsafeUnpin for SipDialtone
impl UnwindSafe for SipDialtone
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