actr_protocol/generated/
webrtc.rs1#[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#[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}
22pub 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 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 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}