pub enum SignalMessage {
HandshakeReq([u8; 32]),
HandshakeRes([u8; 32]),
Offer(Vec<u8>),
Answer(Vec<u8>),
Ice(Vec<u8>),
Message(Vec<u8>),
Keepalive,
Unknown,
}Expand description
Parsed signal message.
Variants§
HandshakeReq([u8; 32])
Initiate a handshake with a peer.
HandshakeRes([u8; 32])
Complete a handshake with a peer.
Offer(Vec<u8>)
As an impolite node, send a webrtc offer.
Answer(Vec<u8>)
As a polite node, send a webrtc answer.
Ice(Vec<u8>)
Webrtc connectivity message.
Message(Vec<u8>)
Pre-webrtc and webrtc failure fallback communication message.
Keepalive
Keepalive
Unknown
Message type not understood by this client.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SignalMessage
impl RefUnwindSafe for SignalMessage
impl Send for SignalMessage
impl Sync for SignalMessage
impl Unpin for SignalMessage
impl UnwindSafe for SignalMessage
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