pub enum RtcMessage {
Offer {
from: Uuid,
to: Uuid,
sdp: String,
meta: Value,
},
Answer {
from: Uuid,
to: Uuid,
sdp: String,
meta: Value,
},
Candidate {
from: Uuid,
to: Uuid,
candidate: String,
},
CandidateBatch {
from: Uuid,
to: Uuid,
candidates: Vec<String>,
},
Status {
from: Uuid,
to: Uuid,
status: String,
},
PeerList {
peers: Vec<Uuid>,
},
PeerDiscovery {
room: Option<String>,
},
TurnCredentials(TurnCredential),
}Expand description
RTC signaling messages carried on the rtc channel.
Variants§
Offer
Answer
Candidate
CandidateBatch
Status
PeerList
PeerDiscovery
TurnCredentials(TurnCredential)
Trait Implementations§
Source§impl Clone for RtcMessage
impl Clone for RtcMessage
Source§fn clone(&self) -> RtcMessage
fn clone(&self) -> RtcMessage
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 RtcMessage
impl Debug for RtcMessage
Source§impl<'de> Deserialize<'de> for RtcMessage
impl<'de> Deserialize<'de> for RtcMessage
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 RtcMessage
impl RefUnwindSafe for RtcMessage
impl Send for RtcMessage
impl Sync for RtcMessage
impl Unpin for RtcMessage
impl UnsafeUnpin for RtcMessage
impl UnwindSafe for RtcMessage
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