Enum medea_jason::peer::PeerEvent [−][src]
Events emitted from RtcPeerConnection
.
Variants
RtcPeerConnection
discovered new ICE candidate.
Wrapper around RTCPeerConnectionIceEvent.
Fields of IceCandidateDiscovered
peer_id: Id
ID of the PeerConnection
that discovered new ICE candidate.
candidate: String
candidate
field of the discovered RTCIceCandidate.
sdp_m_line_index: Option<u16>
sdpMLineIndex
field of the discovered RTCIceCandidate.
sdp_mid: Option<String>
sdpMid
field of the discovered RTCIceCandidate.
RtcPeerConnection
received new remote::Track
from remote
sender.
Fields of NewRemoteTrack
RtcPeerConnection
sent new local track to remote members.
Fields of NewLocalTrack
local_track: Rc<Track>
Local local::Track
that is sent to remote members.
RtcPeerConnection
’s ICE connection state changed.
Fields of IceConnectionStateChanged
peer_id: Id
ID of the PeerConnection
that sends
iceconnectionstatechange
event.
ice_connection_state: IceConnectionState
New IceConnectionState
.
RtcPeerConnection
’s connection state changed.
Fields of ConnectionStateChanged
peer_id: Id
ID of the PeerConnection
that sends
connectionstatechange
event.
peer_connection_state: PeerConnectionState
New PeerConnectionState
.
RtcPeerConnection
’s RtcStats
update.
Fields of StatsUpdate
peer_id: Id
ID of the PeerConnection
for which RtcStats
was sent.
stats: RtcStats
RtcStats
of this PeerConnection
.
PeerConnection::update_local_stream
was failed, so
on_failed_local_stream
callback should be called.
Fields of FailedLocalMedia
error: JasonError
Reasons of local media updating fail.
Component
generated a new SDP answer.
Fields of NewSdpAnswer
Component
generated a new SDP offer.
Fields of NewSdpOffer
peer_id: PeerId
ID of the PeerConnection
for which SDP offer was generated.
sdp_offer: String
SDP Offer of the PeerConnection
.
mids: HashMap<TrackId, String>
Associations between Track
and transceiver’s
media description.
mid
is basically an ID of m=<media>
section in SDP.
transceivers_statuses: HashMap<TrackId, bool>
Statuses of PeerConnection
transceivers.
Component
resends his intentions.
Implementations
impl PeerEvent
[src]
pub async fn dispatch_with<T: PeerEventHandler>(
self,
handler: &T
) -> <T as PeerEventHandler>::Output
[src]
self,
handler: &T
) -> <T as PeerEventHandler>::Output
Dispatches PeerEvent
with given PeerEventHandler
.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for PeerEvent
impl !Send for PeerEvent
impl !Sync for PeerEvent
impl Unpin for PeerEvent
impl !UnwindSafe for PeerEvent
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.