antenna_protocol/handshake/output.rs
1use serde::{Deserialize, Serialize};
2
3use crate::SignalingPayload;
4
5/// Commands emitted by the handshake FSM for the driver to execute.
6#[derive(Debug, PartialEq, Eq, Clone, Deserialize, Serialize)]
7pub enum HandshakeOutput {
8 /// Initiate creating, applying and sending offer to other peer (to joiner)
9 InitSDPOffer,
10
11 /// Initiate creating, applying and sending answer to other peer (to host)
12 RequestSDPAnswer(SignalingPayload),
13
14 /// Apply received answer from other peer (from joiner)
15 AcceptSDPAnswer(SignalingPayload),
16
17 /// Register connect with other peer
18 Connected,
19
20 /// Close connection
21 Close,
22}