#[non_exhaustive]pub enum SipRegistrationParam {
Index,
Details,
IsRegistered,
Other(String),
}Expand description
A per-registration SIP parameter: one of the three flat properties the
device carries on each SIPREGISTRATION child under SIPCALLING.
Index selects which registration slot; Details is the account
registration payload; IsRegistered is the device-side registered
flag (read-back: echoes whenever the SIP subsystem re-checks
registration, including as a side effect of writes to SIPADVANCED
account fields).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Index
Details
IsRegistered
Other(String)
A property without a typed SipRegistrationParam identifier yet. Holds the raw wire name; the value still rides in the carrying event/command.
Implementations§
Source§impl SipRegistrationParam
impl SipRegistrationParam
Sourcepub fn from_known_name(name: &str) -> Option<SipRegistrationParam>
pub fn from_known_name(name: &str) -> Option<SipRegistrationParam>
Map a wire property name to its typed SipRegistrationParam variant if known, without allocating.
Sourcepub fn is_known_name(name: &str) -> bool
pub fn is_known_name(name: &str) -> bool
Check if a wire property name matches a known SipRegistrationParam variant without allocating.
Sourcepub fn from_name(name: &str) -> SipRegistrationParam
pub fn from_name(name: &str) -> SipRegistrationParam
Map a wire property name to its typed SipRegistrationParam variant. Unknown names map to SipRegistrationParam::Other, so this is total (never fails).
Sourcepub fn as_str(&self) -> &str
pub fn as_str(&self) -> &str
The wire property name for this parameter (inverse of SipRegistrationParam::from_name).
Sourcepub fn is_known(&self) -> bool
pub fn is_known(&self) -> bool
true if this is a typed variant (not SipRegistrationParam::Other).