stun_rs/attributes/
ice.rs

1//! ICE extends STUN with the attributes: [`Priority`], [`UseCandidate`],
2//! [`IceControlled`], and [`IceControlling`].
3//! These attributes are formally defined in
4//! [Section 16.1](https://datatracker.ietf.org/doc/html/rfc8445#section-16.1).
5//! This section describes the usage of the attributes
6//! The attributes are only applicable to ICE connectivity checks.
7mod ice_controlled;
8mod ice_controlling;
9mod priority;
10mod use_candidate;
11
12use crate::registry::DecoderRegistry;
13pub use ice_controlled::IceControlled;
14pub use ice_controlling::IceControlling;
15pub use priority::Priority;
16pub use use_candidate::UseCandidate;
17
18pub(crate) fn ice_register_attributes(registry: &mut DecoderRegistry) {
19    registry.register::<IceControlled>();
20    registry.register::<IceControlling>();
21    registry.register::<Priority>();
22    registry.register::<UseCandidate>();
23}