aboutsummaryrefslogtreecommitdiff
path: root/client-native-rift/src/protocol.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2022-09-14 18:59:30 +0200
committermetamuffin <metamuffin@disroot.org>2022-09-14 18:59:30 +0200
commit401ee1336f83a9172b0cc4231b382c6a099bb66c (patch)
tree324f946ac46ea00aa365ce4afd3a67acdb53d1aa /client-native-rift/src/protocol.rs
parent473c7624c1419c6636addebb183dede5be88b061 (diff)
downloadkeks-meet-401ee1336f83a9172b0cc4231b382c6a099bb66c.tar
keks-meet-401ee1336f83a9172b0cc4231b382c6a099bb66c.tar.bz2
keks-meet-401ee1336f83a9172b0cc4231b382c6a099bb66c.tar.zst
just a in-between state
Diffstat (limited to 'client-native-rift/src/protocol.rs')
-rw-r--r--client-native-rift/src/protocol.rs17
1 files changed, 5 insertions, 12 deletions
diff --git a/client-native-rift/src/protocol.rs b/client-native-rift/src/protocol.rs
index b3719d0..431dc42 100644
--- a/client-native-rift/src/protocol.rs
+++ b/client-native-rift/src/protocol.rs
@@ -1,5 +1,7 @@
use serde::{Deserialize, Serialize};
-use webrtc::peer_connection::sdp::sdp_type::RTCSdpType;
+use webrtc::{
+ ice_transport::ice_candidate::RTCIceCandidateInit, peer_connection::sdp::sdp_type::RTCSdpType,
+};
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "snake_case")]
@@ -22,8 +24,8 @@ pub enum ServerboundPacket {
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct RelayMessageWrapper {
- sender: usize, // redundant, but ensures the server didnt cheat
- inner: RelayMessage,
+ pub sender: usize, // redundant, but ensures the server didnt cheat
+ pub inner: RelayMessage,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
@@ -39,12 +41,3 @@ pub struct RTCSessionDescriptionInit {
pub ty: RTCSdpType,
pub sdp: String,
}
-
-#[derive(Debug, Clone, Serialize, Deserialize)]
-#[serde(rename_all = "camelCase")]
-pub struct RTCIceCandidateInit {
- pub candidate: String,
- pub sdp_m_line_index: Option<usize>,
- pub sdp_mid: Option<String>,
- pub username_fragment: Option<String>,
-}