#[repr(u8)]pub enum DtmfCode {
Show 16 variants
One = 49,
Two = 50,
Three = 51,
Four = 52,
Five = 53,
Six = 54,
Seven = 55,
Eight = 56,
Nine = 57,
NumberSign = 35,
Zero = 48,
Asterisk = 42,
A = 65,
B = 66,
C = 67,
D = 68,
}
Expand description
Dual-tone multi-frequency signaling codes.
Variants§
One = 49
Represented by ASCII “1” in AT commands.
Two = 50
Represented by ASCII “2” in AT commands.
Three = 51
Represented by ASCII “3” in AT commands.
Four = 52
Represented by ASCII “4” in AT commands.
Five = 53
Represented by ASCII “5” in AT commands.
Six = 54
Represented by ASCII “6” in AT commands.
Seven = 55
Represented by ASCII “7” in AT commands.
Eight = 56
Represented by ASCII “8” in AT commands.
Nine = 57
Represented by ASCII “9” in AT commands.
NumberSign = 35
Represented by ASCII “#” in AT commands.
Zero = 48
Represented by ASCII “0” in AT commands.
Asterisk = 42
Represented by ASCII “*” in AT commands.
A = 65
Represented by ASCII “A” in AT commands.
B = 66
Represented by ASCII “B” in AT commands.
C = 67
Represented by ASCII “C” in AT commands.
D = 68
Represented by ASCII “D” in AT commands.
Implementations§
Source§impl DtmfCode
impl DtmfCode
pub fn from_primitive(prim: u8) -> Option<Self>
pub const fn into_primitive(self) -> u8
pub fn is_unknown(&self) -> bool
👎Deprecated: Strict enums should not use
is_unknown
Trait Implementations§
Source§impl<D: ResourceDialect> Decode<DtmfCode, D> for DtmfCode
impl<D: ResourceDialect> Decode<DtmfCode, D> for DtmfCode
Source§impl Ord for DtmfCode
impl Ord for DtmfCode
Source§impl PartialOrd for DtmfCode
impl PartialOrd for DtmfCode
Source§impl TypeMarker for DtmfCode
impl TypeMarker for DtmfCode
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for DtmfCode
impl ValueTypeMarker for DtmfCode
impl Copy for DtmfCode
impl Eq for DtmfCode
impl StructuralPartialEq for DtmfCode
Auto Trait Implementations§
impl Freeze for DtmfCode
impl RefUnwindSafe for DtmfCode
impl Send for DtmfCode
impl Sync for DtmfCode
impl Unpin for DtmfCode
impl UnwindSafe for DtmfCode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)