#[non_exhaustive]pub enum SipCallingParam {
Show 15 variants
HostingEnabled,
HostingToggleEnabled,
LicenceMode,
LicenceCheck,
RodeCode,
IncomingCallAccept,
IncomingCallDetails,
OutgoingCallDetails,
SlotPendingCallSetup,
RemainingCalltime,
RemainingWebCalltime,
RenewalDate,
LicenceRenewal,
CallRating,
Other(String),
}Expand description
A SIP calling-level parameter: one of the fourteen flat properties the
device carries on the singleton SIPCALLING node. Combines settings
(HostingEnabled / HostingToggleEnabled / LicenceMode /
LicenceCheck), device-managed read-back (RodeCode: the invite
code; rotates on hosting toggle), incoming/outgoing call setup
channels (JSON-ish strings), the pending-slot selector, subscription
remaining-time meters, and the post-call rating write channel.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
HostingEnabled
HostingToggleEnabled
LicenceMode
LicenceCheck
RodeCode
IncomingCallAccept
IncomingCallDetails
OutgoingCallDetails
SlotPendingCallSetup
RemainingCalltime
RemainingWebCalltime
RenewalDate
LicenceRenewal
CallRating
Other(String)
A property without a typed SipCallingParam identifier yet. Holds the raw wire name; the value still rides in the carrying event/command.
Implementations§
Source§impl SipCallingParam
impl SipCallingParam
Sourcepub fn from_known_name(name: &str) -> Option<SipCallingParam>
pub fn from_known_name(name: &str) -> Option<SipCallingParam>
Map a wire property name to its typed SipCallingParam 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 SipCallingParam variant without allocating.
Sourcepub fn from_name(name: &str) -> SipCallingParam
pub fn from_name(name: &str) -> SipCallingParam
Map a wire property name to its typed SipCallingParam variant. Unknown names map to SipCallingParam::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 SipCallingParam::from_name).
Sourcepub fn is_known(&self) -> bool
pub fn is_known(&self) -> bool
true if this is a typed variant (not SipCallingParam::Other).