script::dom::bindings::codegen::GenericBindings::RTCPeerConnectionBinding

Trait RTCPeerConnectionMethods

Source
pub 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) -> Option<Rc<EventHandlerNonNull<D>>>; fn SetOnnegotiationneeded(&self, value: Option<Rc<EventHandlerNonNull<D>>>); fn GetOnicecandidate(&self) -> Option<Rc<EventHandlerNonNull<D>>>; fn SetOnicecandidate(&self, value: Option<Rc<EventHandlerNonNull<D>>>); fn GetOnsignalingstatechange(&self) -> Option<Rc<EventHandlerNonNull<D>>>; fn SetOnsignalingstatechange( &self, value: Option<Rc<EventHandlerNonNull<D>>>, ); fn GetOniceconnectionstatechange( &self, ) -> Option<Rc<EventHandlerNonNull<D>>>; fn SetOniceconnectionstatechange( &self, value: Option<Rc<EventHandlerNonNull<D>>>, ); fn GetOnicegatheringstatechange(&self) -> Option<Rc<EventHandlerNonNull<D>>>; fn SetOnicegatheringstatechange( &self, 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) -> Option<Rc<EventHandlerNonNull<D>>>; fn SetOntrack(&self, value: Option<Rc<EventHandlerNonNull<D>>>); fn CreateDataChannel( &self, label: USVString, dataChannelDict: &RTCDataChannelInit, ) -> Root<Dom<<D as DomTypes>::RTCDataChannel>>; fn GetOndatachannel(&self) -> Option<Rc<EventHandlerNonNull<D>>>; fn SetOndatachannel(&self, 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) -> Option<Rc<EventHandlerNonNull<D>>>

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

fn SetOnicegatheringstatechange( &self, 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) -> Option<Rc<EventHandlerNonNull<D>>>

Source

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

Source

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

Source

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

Source

fn SetOndatachannel(&self, 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§