pub enum ControlMessage {
Show 22 variants
Join {
peer_id: PeerId,
display_name: Option<String>,
},
Hello {
peer_id: PeerId,
public_key: Vec<u8>,
capabilities: Capabilities,
candidates: Vec<SocketAddr>,
},
IceCandidates {
peer_id: PeerId,
session: SessionId,
candidates: Vec<IceCandidate>,
},
IceCheck {
session: SessionId,
tie_breaker: u64,
candidate: IceCandidate,
},
IceCheckAck {
session: SessionId,
candidate: IceCandidate,
},
KeyInit {
session: SessionId,
eph_pub_x25519: [u8; 32],
sig_ed25519: Vec<u8>,
},
KeyResp {
session: SessionId,
eph_pub_x25519: [u8; 32],
sig_ed25519: Vec<u8>,
},
EncryptedReady {
session: SessionId,
alg: u8,
},
Leave {
peer_id: PeerId,
},
PeerState {
peer_id: PeerId,
relay_capable: bool,
},
Chat(ChatMessage),
Ping {
nonce: u64,
sent_at_ms: u64,
},
Pong {
nonce: u64,
sent_at_ms: u64,
},
Auth {
token: Vec<u8>,
},
RouteInfo {
from: PeerId,
to: PeerId,
relayed: bool,
},
Capabilities(Capabilities),
CapabilitiesUpdate(Capabilities),
PeerList {
peers: Vec<PeerInfo>,
},
Call(CallControl),
Group(GroupControl),
E2eeInit {
session: SessionId,
from: PeerId,
public_key: [u8; 32],
signature: Vec<u8>,
},
E2eeResp {
session: SessionId,
from: PeerId,
public_key: [u8; 32],
signature: Vec<u8>,
},
}Expand description
Control plane messages exchanged over the Control stream.
Variants§
Join
Hello
IceCandidates
IceCheck
IceCheckAck
KeyInit
KeyResp
EncryptedReady
Leave
PeerState
Chat(ChatMessage)
Ping
Pong
Auth
RouteInfo
Capabilities(Capabilities)
CapabilitiesUpdate(Capabilities)
PeerList
Call(CallControl)
Group(GroupControl)
E2eeInit
E2eeResp
Trait Implementations§
Source§impl Clone for ControlMessage
impl Clone for ControlMessage
Source§fn clone(&self) -> ControlMessage
fn clone(&self) -> ControlMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ControlMessage
impl Debug for ControlMessage
Source§impl<'de> Deserialize<'de> for ControlMessage
impl<'de> Deserialize<'de> for ControlMessage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ControlMessage
impl RefUnwindSafe for ControlMessage
impl Send for ControlMessage
impl Sync for ControlMessage
impl Unpin for ControlMessage
impl UnwindSafe for ControlMessage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more