pub enum DtmfMode {
Auto,
Rfc2833,
Skinny,
Unknown(u32),
}Expand description
Policy used to transport connected-call DTMF digits.
Variants§
Auto
Rfc2833
Skinny
Unknown(u32)
Preserves an SCCP numeric value not recognized by this crate. Allows newer or vendor-specific values to round-trip without loss.
Implementations§
Source§impl DtmfMode
impl DtmfMode
Sourcepub const fn resolve(self, features: PhoneFeatures) -> Self
pub const fn resolve(self, features: PhoneFeatures) -> Self
Resolves the automatic policy against the feature bits advertised by the registered station. Explicit policies are always preserved.
Sourcepub const fn telephone_event_payload(self, features: PhoneFeatures) -> u8
pub const fn telephone_event_payload(self, features: PhoneFeatures) -> u8
Returns the wire payload type for the resolved policy. A zero payload tells the station to report connected-call digits as signaling events.
Trait Implementations§
impl Copy for DtmfMode
impl Eq for DtmfMode
impl StructuralPartialEq for DtmfMode
Auto Trait Implementations§
impl Freeze for DtmfMode
impl RefUnwindSafe for DtmfMode
impl Send for DtmfMode
impl Sync for DtmfMode
impl Unpin for DtmfMode
impl UnsafeUnpin for DtmfMode
impl UnwindSafe for DtmfMode
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