RTCPeerConnectionMethods

Trait RTCPeerConnectionMethods 

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

Required Methods§

Source

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

Source

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

Source

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

Source

fn GetLocalDescription( &self, ) -> Option<Root<Dom<<D as DomTypes>::RTCSessionDescription>>>

Source

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

Source

fn GetRemoteDescription( &self, ) -> Option<Root<Dom<<D as DomTypes>::RTCSessionDescription>>>

Source

fn AddIceCandidate( &self, candidate: &RTCIceCandidateInit, _comp: InRealm<'_>, _can_gc: CanGc, ) -> Rc<<D as DomTypes>::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, cx: &mut JSContext, ) -> Option<Rc<EventHandlerNonNull<D>>>

Source

fn SetOnnegotiationneeded( &self, cx: &mut JSContext, value: Option<Rc<EventHandlerNonNull<D>>>, )

Source

fn GetOnicecandidate( &self, cx: &mut JSContext, ) -> Option<Rc<EventHandlerNonNull<D>>>

Source

fn SetOnicecandidate( &self, cx: &mut JSContext, value: Option<Rc<EventHandlerNonNull<D>>>, )

Source

fn GetOnsignalingstatechange( &self, cx: &mut JSContext, ) -> Option<Rc<EventHandlerNonNull<D>>>

Source

fn SetOnsignalingstatechange( &self, cx: &mut JSContext, value: Option<Rc<EventHandlerNonNull<D>>>, )

Source

fn GetOniceconnectionstatechange( &self, cx: &mut JSContext, ) -> Option<Rc<EventHandlerNonNull<D>>>

Source

fn SetOniceconnectionstatechange( &self, cx: &mut JSContext, value: Option<Rc<EventHandlerNonNull<D>>>, )

Source

fn GetOnicegatheringstatechange( &self, cx: &mut JSContext, ) -> Option<Rc<EventHandlerNonNull<D>>>

Source

fn SetOnicegatheringstatechange( &self, cx: &mut JSContext, value: Option<Rc<EventHandlerNonNull<D>>>, )

Source

fn AddStream(&self, stream: &<D as DomTypes>::MediaStream)

Source

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

Source

fn GetOntrack(&self, cx: &mut JSContext) -> Option<Rc<EventHandlerNonNull<D>>>

Source

fn SetOntrack( &self, cx: &mut JSContext, value: Option<Rc<EventHandlerNonNull<D>>>, )

Source

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

Source

fn GetOndatachannel( &self, cx: &mut JSContext, ) -> Option<Rc<EventHandlerNonNull<D>>>

Source

fn SetOndatachannel( &self, cx: &mut JSContext, value: Option<Rc<EventHandlerNonNull<D>>>, )

Source

fn Constructor( global: &<D as DomTypes>::Window, proto: Option<Handle<'_, *mut JSObject>>, can_gc: CanGc, configuration: &RTCConfiguration, ) -> Result<Root<Dom<<D as DomTypes>::RTCPeerConnection>>, Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§