actr_protocol/generated/
webrtc.rs

1// This file is @generated by prost-build.
2/// IceCandidate 对应 WebRTC 标准中的 RTCIceCandidateInit 接口。
3#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
4pub struct IceCandidate {
5    #[prost(string, required, tag = "1")]
6    pub candidate: ::prost::alloc::string::String,
7    #[prost(string, optional, tag = "2")]
8    pub sdp_mid: ::core::option::Option<::prost::alloc::string::String>,
9    #[prost(uint32, optional, tag = "3")]
10    pub sdp_mline_index: ::core::option::Option<u32>,
11    #[prost(string, optional, tag = "4")]
12    pub username_fragment: ::core::option::Option<::prost::alloc::string::String>,
13}
14/// SessionDescription 是对 SDP 的统一封装。所有轨道信息都包含在 sdp 字符串中。
15#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
16pub struct SessionDescription {
17    #[prost(enumeration = "session_description::Type", required, tag = "1")]
18    pub r#type: i32,
19    #[prost(string, required, tag = "2")]
20    pub sdp: ::prost::alloc::string::String,
21}
22/// Nested message and enum types in `SessionDescription`.
23pub mod session_description {
24    #[derive(
25        Clone,
26        Copy,
27        Debug,
28        PartialEq,
29        Eq,
30        Hash,
31        PartialOrd,
32        Ord,
33        ::prost::Enumeration
34    )]
35    #[repr(i32)]
36    pub enum Type {
37        Offer = 0,
38        Answer = 1,
39        RenegotiationOffer = 2,
40    }
41    impl Type {
42        /// String value of the enum field names used in the ProtoBuf definition.
43        ///
44        /// The values are not transformed in any way and thus are considered stable
45        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
46        pub fn as_str_name(&self) -> &'static str {
47            match self {
48                Self::Offer => "OFFER",
49                Self::Answer => "ANSWER",
50                Self::RenegotiationOffer => "RENEGOTIATION_OFFER",
51            }
52        }
53        /// Creates an enum from field names used in the ProtoBuf definition.
54        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
55            match value {
56                "OFFER" => Some(Self::Offer),
57                "ANSWER" => Some(Self::Answer),
58                "RENEGOTIATION_OFFER" => Some(Self::RenegotiationOffer),
59                _ => None,
60            }
61        }
62    }
63}