stun_rs/attributes/
discovery.rs

1//! NAT Behavior Discovery attributes defined for STUN
2//! [`RFC5780`](https://datatracker.ietf.org/doc/html/rfc5780)
3
4mod change_request;
5mod other_address;
6mod padding;
7mod response_origin;
8mod response_port;
9
10use crate::registry::DecoderRegistry;
11pub use change_request::ChangeRequest;
12pub use change_request::ChangeRequestFlags;
13pub use other_address::OtherAddress;
14pub use padding::Padding;
15pub use response_origin::ResponseOrigin;
16pub use response_port::ResponsePort;
17
18pub(crate) fn discovery_register_attributes(registry: &mut DecoderRegistry) {
19    registry.register::<ChangeRequest>();
20    registry.register::<OtherAddress>();
21    registry.register::<Padding>();
22    registry.register::<ResponseOrigin>();
23    registry.register::<ResponsePort>();
24}