Struct medea_client_api_proto::state::Peer[][src]

pub struct Peer {
    pub id: PeerId,
    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>,
}

State of a Peer element.

Fields

id: PeerId

ID of this Peer.

senders: HashMap<TrackId, Sender>

All Senders of this Peer.

receivers: HashMap<TrackId, Receiver>

All Receivers of this Peer.

force_relay: bool

Indicator whether this Peer should relay all media through a TURN server forcibly.

ice_servers: Vec<IceServer>

List of IceServers which this Peer should use.

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 IceCandidates of this Peer.

Trait Implementations

impl Clone for Peer[src]

impl Debug for Peer[src]

impl<'de> Deserialize<'de> for Peer[src]

impl Eq for Peer[src]

impl PartialEq<Peer> for Peer[src]

impl Serialize for Peer[src]

impl StructuralEq for Peer[src]

impl StructuralPartialEq for Peer[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.