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),