pub trait RTCPeerConnectionMethods {
Show 28 methods // Required methods fn CreateOffer( &self, options: &RTCOfferOptions, _comp: InRealm<'_> ) -> Rc<Promise>; fn CreateAnswer( &self, options: &RTCAnswerOptions, _comp: InRealm<'_> ) -> Rc<Promise>; fn SetLocalDescription( &self, description: &RTCSessionDescriptionInit, _comp: InRealm<'_> ) -> Rc<Promise>; fn GetLocalDescription(&self) -> Option<Root<Dom<RTCSessionDescription>>>; fn SetRemoteDescription( &self, description: &RTCSessionDescriptionInit, _comp: InRealm<'_> ) -> Rc<Promise>; fn GetRemoteDescription(&self) -> Option<Root<Dom<RTCSessionDescription>>>; fn AddIceCandidate( &self, candidate: &RTCIceCandidateInit, _comp: InRealm<'_> ) -> Rc<Promise>; fn SignalingState(&self) -> RTCSignalingState; fn IceGatheringState(&self) -> RTCIceGatheringState; fn IceConnectionState(&self) -> RTCIceConnectionState; fn Close(&self); 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>>);
}

Required Methods§

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

fn SignalingState(&self) -> RTCSignalingState

source

fn IceGatheringState(&self) -> RTCIceGatheringState

source

fn IceConnectionState(&self) -> RTCIceConnectionState

source

fn Close(&self)

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>>)

Implementors§