pub struct Peer {
pub id: PeerId,
pub connection_mode: ConnectionMode,
pub senders: HashMap<TrackId, Sender>,
pub receivers: HashMap<TrackId, Receiver>,
pub force_relay: bool,
pub ice_servers: Vec<IceServer>,
pub negotiation_role: Option<NegotiationRole>,
pub local_sdp: Option<String>,
pub remote_sdp: Option<String>,
pub restart_ice: bool,
pub ice_candidates: HashSet<IceCandidate>,
pub stats_scrape_interval_ms: u32,
}Expand description
State of a Peer element.
Fields§
§id: PeerIdID of this Peer.
connection_mode: ConnectionMode§senders: HashMap<TrackId, Sender>§receivers: HashMap<TrackId, Receiver>§force_relay: boolIndicator whether this Peer should relay all media through a TURN
server forcibly.
ice_servers: Vec<IceServer>§negotiation_role: Option<NegotiationRole>Current NegotiationRole of this Peer.
local_sdp: Option<String>Current SDP offer of this Peer.
remote_sdp: Option<String>Current SDP offer of the partner Peer.
restart_ice: boolIndicator whether ICE restart should be performed.
ice_candidates: HashSet<IceCandidate>All IceCandidates of this Peer.
stats_scrape_interval_ms: u32Interval (in milliseconds) of RTCPeerConnection’s stats scraping.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Peer
impl<'de> Deserialize<'de> for Peer
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
impl Eq for Peer
impl StructuralPartialEq for Peer
Auto Trait Implementations§
impl Freeze for Peer
impl RefUnwindSafe for Peer
impl Send for Peer
impl Sync for Peer
impl Unpin for Peer
impl UnwindSafe for Peer
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)