WebRTCICEExt

Trait WebRTCICEExt 

Source
pub trait WebRTCICEExt: IsA<WebRTCICE> + 'static {
Show 28 methods // Provided methods fn add_stream(&self, session_id: u32) -> Option<WebRTCICEStream> { ... } fn add_turn_server(&self, uri: &str) -> bool { ... } fn find_transport( &self, stream: &impl IsA<WebRTCICEStream>, component: WebRTCICEComponent, ) -> Option<WebRTCICETransport> { ... } fn gather_candidates(&self, stream: &impl IsA<WebRTCICEStream>) -> bool { ... } fn http_proxy(&self) -> GString { ... } fn is_controller(&self) -> bool { ... } fn local_candidates( &self, stream: &impl IsA<WebRTCICEStream>, ) -> Vec<WebRTCICECandidateStats> { ... } fn remote_candidates( &self, stream: &impl IsA<WebRTCICEStream>, ) -> Vec<WebRTCICECandidateStats> { ... } fn selected_pair( &self, stream: &impl IsA<WebRTCICEStream>, ) -> Option<(WebRTCICECandidateStats, WebRTCICECandidateStats)> { ... } fn stun_server(&self) -> Option<GString> { ... } fn turn_server(&self) -> Option<GString> { ... } fn set_force_relay(&self, force_relay: bool) { ... } fn set_http_proxy(&self, uri: &str) { ... } fn set_is_controller(&self, controller: bool) { ... } fn set_local_credentials( &self, stream: &impl IsA<WebRTCICEStream>, ufrag: &str, pwd: &str, ) -> bool { ... } fn set_on_ice_candidate<P: Fn(&WebRTCICE, u32, &str) + Send + Sync + 'static>( &self, func: P, ) { ... } fn set_remote_credentials( &self, stream: &impl IsA<WebRTCICEStream>, ufrag: &str, pwd: &str, ) -> bool { ... } fn set_stun_server(&self, uri: Option<&str>) { ... } fn set_tos(&self, stream: &impl IsA<WebRTCICEStream>, tos: u32) { ... } fn set_turn_server(&self, uri: Option<&str>) { ... } fn max_rtp_port(&self) -> u32 { ... } fn set_max_rtp_port(&self, max_rtp_port: u32) { ... } fn min_rtp_port(&self) -> u32 { ... } fn set_min_rtp_port(&self, min_rtp_port: u32) { ... } fn connect_add_local_ip_address<F: Fn(&Self, &str) -> bool + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn emit_add_local_ip_address(&self, address: &str) -> bool { ... } fn connect_max_rtp_port_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_min_rtp_port_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId { ... }
}
Available on crate feature v1_22 only.

Provided Methods§

Source

fn add_stream(&self, session_id: u32) -> Option<WebRTCICEStream>

Source

fn add_turn_server(&self, uri: &str) -> bool

Source

fn find_transport( &self, stream: &impl IsA<WebRTCICEStream>, component: WebRTCICEComponent, ) -> Option<WebRTCICETransport>

Source

fn gather_candidates(&self, stream: &impl IsA<WebRTCICEStream>) -> bool

Source

fn http_proxy(&self) -> GString

Source

fn is_controller(&self) -> bool

Source

fn local_candidates( &self, stream: &impl IsA<WebRTCICEStream>, ) -> Vec<WebRTCICECandidateStats>

Source

fn remote_candidates( &self, stream: &impl IsA<WebRTCICEStream>, ) -> Vec<WebRTCICECandidateStats>

Source

fn selected_pair( &self, stream: &impl IsA<WebRTCICEStream>, ) -> Option<(WebRTCICECandidateStats, WebRTCICECandidateStats)>

Source

fn stun_server(&self) -> Option<GString>

Source

fn turn_server(&self) -> Option<GString>

Source

fn set_force_relay(&self, force_relay: bool)

Source

fn set_http_proxy(&self, uri: &str)

Source

fn set_is_controller(&self, controller: bool)

Source

fn set_local_credentials( &self, stream: &impl IsA<WebRTCICEStream>, ufrag: &str, pwd: &str, ) -> bool

Source

fn set_on_ice_candidate<P: Fn(&WebRTCICE, u32, &str) + Send + Sync + 'static>( &self, func: P, )

Source

fn set_remote_credentials( &self, stream: &impl IsA<WebRTCICEStream>, ufrag: &str, pwd: &str, ) -> bool

Source

fn set_stun_server(&self, uri: Option<&str>)

Source

fn set_tos(&self, stream: &impl IsA<WebRTCICEStream>, tos: u32)

Source

fn set_turn_server(&self, uri: Option<&str>)

Source

fn max_rtp_port(&self) -> u32

Available on crate feature v1_20 only.
Source

fn set_max_rtp_port(&self, max_rtp_port: u32)

Available on crate feature v1_20 only.
Source

fn min_rtp_port(&self) -> u32

Available on crate feature v1_20 only.
Source

fn set_min_rtp_port(&self, min_rtp_port: u32)

Available on crate feature v1_20 only.
Source

fn connect_add_local_ip_address<F: Fn(&Self, &str) -> bool + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn emit_add_local_ip_address(&self, address: &str) -> bool

Source

fn connect_max_rtp_port_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId

Available on crate feature v1_20 only.
Source

fn connect_min_rtp_port_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId

Available on crate feature v1_20 only.

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§