Struct medea_client_api_proto::state::Peer
source · 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>,
}
Expand description
State of a Peer
element.
Fields§
§id: PeerId
ID of this Peer
.
connection_mode: ConnectionMode
§senders: HashMap<TrackId, Sender>
§receivers: HashMap<TrackId, Receiver>
§force_relay: bool
Indicator 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: bool
Indicator whether ICE restart should be performed.
ice_candidates: HashSet<IceCandidate>
All IceCandidate
s of this Peer
.
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
source§impl PartialEq<Peer> for Peer
impl PartialEq<Peer> for Peer
impl Eq for Peer
impl StructuralEq for Peer
impl StructuralPartialEq for Peer
Auto Trait Implementations§
impl RefUnwindSafe for Peer
impl Send for Peer
impl Sync for Peer
impl Unpin for Peer
impl UnwindSafe for Peer
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