From c5e733b71d74a14c2ce21d7322d5c5495029b08c Mon Sep 17 00:00:00 2001 From: Nickiel12 Date: Sun, 1 Sep 2024 00:44:45 +0000 Subject: [PATCH] added a name request to the standard --- src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index e307758..8219515 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -16,8 +16,13 @@ use webrtc::ice_transport::ice_candidate::{RTCIceCandidate, RTCIceCandidateInit} static MAX_MESSAGE: usize = 50; +/// Standardized messages that can be sent between the controller +/// and satellites #[derive(Serialize, Deserialize, Clone)] pub enum ApplicationMessage { + /// Ask for the satellite's name. If it is None, it is a name request + /// if it is Some, it is a response to a name request + NameRequest(Option), WebRTCPacket(RTCSessionDescription), WebRTCIceCandidate(RTCIceCandidate), WebRTCIceCandidateInit(RTCIceCandidateInit),