pub struct CapabilityDescriptor {
pub audio_codecs: Vec<CodecInfo>,
pub video_codecs: Vec<CodecInfo>,
pub data_protocols: Vec<DataProtocol>,
pub dtmf_modes: Vec<DtmfMode>,
pub max_streams_per_connection: u16,
pub transport_features: Vec<TransportFeature>,
pub interop: Vec<InteropTarget>,
pub identity_assurance_offered: AssuranceLevel,
pub identity_assurance_required: Option<IdentityAssuranceRequirement>,
pub supports_message_text: bool,
pub supports_srtp: bool,
}Expand description
Capability descriptor that round-trips through CONVERSATION_PROTOCOL.md §8’s JSON shape. Field order matches the spec for readability.
supports_dtmf_rfc4733 is a method (derived from dtmf_modes),
not a field — dtmf_modes is the single source of truth on the wire
and the boolean would silently desync from a custom serde round-trip.
Fields§
§audio_codecs: Vec<CodecInfo>§video_codecs: Vec<CodecInfo>§data_protocols: Vec<DataProtocol>§dtmf_modes: Vec<DtmfMode>§max_streams_per_connection: u16§transport_features: Vec<TransportFeature>§interop: Vec<InteropTarget>Gatewayable interop targets (["sip", "webrtc"]). Empty when the
endpoint is UCTP-only.
identity_assurance_offered: AssuranceLevelIdentityAssurance the peer is offering. Defaults to
Anonymous when not declared.
identity_assurance_required: Option<IdentityAssuranceRequirement>Minimum IdentityAssurance the peer requires from its counterpart.
None means no constraint.
supports_message_text: boolLegacy boolean retained from the original narrow CapabilityDescriptor
for back-compat with consumers that check messaging support
directly. Independent of dtmf_modes / data_protocols.
supports_srtp: boolLegacy boolean retained from the original narrow CapabilityDescriptor.
Independent of transport_features.
Implementations§
Source§impl CapabilityDescriptor
impl CapabilityDescriptor
Sourcepub fn supports_dtmf_rfc4733(&self) -> bool
pub fn supports_dtmf_rfc4733(&self) -> bool
True when dtmf_modes includes Rfc4733. Defined as a method
(not a field) so dtmf_modes is the single source of truth.
Trait Implementations§
Source§impl Clone for CapabilityDescriptor
impl Clone for CapabilityDescriptor
Source§fn clone(&self) -> CapabilityDescriptor
fn clone(&self) -> CapabilityDescriptor
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more