pub trait RTCPeerConnectionMethods {
Show 29 methods // Required methods fn CreateOffer( &self, options: &RTCOfferOptions, _comp: InRealm<'_>, _can_gc: CanGc, ) -> Rc<Promise>; fn CreateAnswer( &self, options: &RTCAnswerOptions, _comp: InRealm<'_>, _can_gc: CanGc, ) -> Rc<Promise>; fn SetLocalDescription( &self, description: &RTCSessionDescriptionInit, _comp: InRealm<'_>, _can_gc: CanGc, ) -> Rc<Promise>; fn GetLocalDescription(&self) -> Option<Root<Dom<RTCSessionDescription>>>; fn SetRemoteDescription( &self, description: &RTCSessionDescriptionInit, _comp: InRealm<'_>, _can_gc: CanGc, ) -> Rc<Promise>; fn GetRemoteDescription(&self) -> Option<Root<Dom<RTCSessionDescription>>>; fn AddIceCandidate( &self, candidate: &RTCIceCandidateInit, _comp: InRealm<'_>, _can_gc: CanGc, ) -> Rc<Promise>; fn SignalingState(&self) -> RTCSignalingState; fn IceGatheringState(&self) -> RTCIceGatheringState; fn IceConnectionState(&self) -> RTCIceConnectionState; fn Close(&self, _can_gc: CanGc); fn GetOnnegotiationneeded(&self) -> Option<Rc<EventHandlerNonNull>>; fn SetOnnegotiationneeded(&self, value: Option<Rc<EventHandlerNonNull>>); fn GetOnicecandidate(&self) -> Option<Rc<EventHandlerNonNull>>; fn SetOnicecandidate(&self, value: Option<Rc<EventHandlerNonNull>>); fn GetOnsignalingstatechange(&self) -> Option<Rc<EventHandlerNonNull>>; fn SetOnsignalingstatechange(&self, value: Option<Rc<EventHandlerNonNull>>); fn GetOniceconnectionstatechange(&self) -> Option<Rc<EventHandlerNonNull>>; fn SetOniceconnectionstatechange( &self, value: Option<Rc<EventHandlerNonNull>>, ); fn GetOnicegatheringstatechange(&self) -> Option<Rc<EventHandlerNonNull>>; fn SetOnicegatheringstatechange( &self, value: Option<Rc<EventHandlerNonNull>>, ); fn AddStream(&self, stream: &MediaStream); fn AddTransceiver( &self, trackOrKind: MediaStreamTrackOrString, init: &RTCRtpTransceiverInit, ) -> Root<Dom<RTCRtpTransceiver>>; fn GetOntrack(&self) -> Option<Rc<EventHandlerNonNull>>; fn SetOntrack(&self, value: Option<Rc<EventHandlerNonNull>>); fn CreateDataChannel( &self, label: USVString, dataChannelDict: &RTCDataChannelInit, ) -> Root<Dom<RTCDataChannel>>; fn GetOndatachannel(&self) -> Option<Rc<EventHandlerNonNull>>; fn SetOndatachannel(&self, value: Option<Rc<EventHandlerNonNull>>); fn Constructor( global: &Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, configuration: &RTCConfiguration, ) -> Result<Root<Dom<RTCPeerConnection>>, Error>;
}

Required Methods§

source

fn CreateOffer( &self, options: &RTCOfferOptions, _comp: InRealm<'_>, _can_gc: CanGc, ) -> Rc<Promise>

source

fn CreateAnswer( &self, options: &RTCAnswerOptions, _comp: InRealm<'_>, _can_gc: CanGc, ) -> Rc<Promise>

source

fn SetLocalDescription( &self, description: &RTCSessionDescriptionInit, _comp: InRealm<'_>, _can_gc: CanGc, ) -> Rc<Promise>

source

fn GetLocalDescription(&self) -> Option<Root<Dom<RTCSessionDescription>>>

source

fn SetRemoteDescription( &self, description: &RTCSessionDescriptionInit, _comp: InRealm<'_>, _can_gc: CanGc, ) -> Rc<Promise>

source

fn GetRemoteDescription(&self) -> Option<Root<Dom<RTCSessionDescription>>>

source

fn AddIceCandidate( &self, candidate: &RTCIceCandidateInit, _comp: InRealm<'_>, _can_gc: CanGc, ) -> Rc<Promise>

source

fn SignalingState(&self) -> RTCSignalingState

source

fn IceGatheringState(&self) -> RTCIceGatheringState

source

fn IceConnectionState(&self) -> RTCIceConnectionState

source

fn Close(&self, _can_gc: CanGc)

source

fn GetOnnegotiationneeded(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnnegotiationneeded(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOnicecandidate(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnicecandidate(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOnsignalingstatechange(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnsignalingstatechange(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOniceconnectionstatechange(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOniceconnectionstatechange(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn GetOnicegatheringstatechange(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnicegatheringstatechange(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn AddStream(&self, stream: &MediaStream)

source

fn AddTransceiver( &self, trackOrKind: MediaStreamTrackOrString, init: &RTCRtpTransceiverInit, ) -> Root<Dom<RTCRtpTransceiver>>

source

fn GetOntrack(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOntrack(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn CreateDataChannel( &self, label: USVString, dataChannelDict: &RTCDataChannelInit, ) -> Root<Dom<RTCDataChannel>>

source

fn GetOndatachannel(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOndatachannel(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn Constructor( global: &Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, configuration: &RTCConfiguration, ) -> Result<Root<Dom<RTCPeerConnection>>, Error>

Object Safety§

This trait is not object safe.

Implementors§