pub struct RTCIceTransport { /* private fields */ }
Expand description

ICETransport allows an application access to information about the ICE transport over which packets are sent and received.

Implementations§

source§

impl RTCIceTransport

source

pub async fn get_selected_candidate_pair(&self) -> Option<RTCIceCandidatePair>

get_selected_candidate_pair returns the selected candidate pair on which packets are sent if there is no selected pair nil is returned

source

pub async fn start( &self, params: &RTCIceParameters, role: Option<RTCIceRole> ) -> Result<()>

Start incoming connectivity checks based on its configured role.

source

pub async fn stop(&self) -> Result<()>

Stop irreversibly stops the ICETransport.

source

pub fn on_selected_candidate_pair_change( &self, f: OnSelectedCandidatePairChangeHdlrFn )

on_selected_candidate_pair_change sets a handler that is invoked when a new ICE candidate pair is selected

source

pub fn on_connection_state_change(&self, f: OnConnectionStateChangeHdlrFn)

on_connection_state_change sets a handler that is fired when the ICE connection state changes.

source

pub async fn role(&self) -> RTCIceRole

Role indicates the current role of the ICE transport.

source

pub async fn set_remote_candidates( &self, remote_candidates: &[RTCIceCandidate] ) -> Result<()>

set_remote_candidates sets the sequence of candidates associated with the remote ICETransport.

source

pub async fn add_remote_candidate( &self, remote_candidate: Option<RTCIceCandidate> ) -> Result<()>

adds a candidate associated with the remote ICETransport.

source

pub fn state(&self) -> RTCIceTransportState

State returns the current ice transport state.

Trait Implementations§

source§

impl Default for RTCIceTransport

source§

fn default() -> RTCIceTransport

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

§

fn implicit( self, class: Class, constructed: bool, tag: u32 ) -> TaggedParser<'a, Implicit, Self, E>

source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V