Struct datachannel::RtcConfig
source · [−]pub struct RtcConfig {
pub ice_servers: Vec<CString>,
pub proxy_server: Option<CString>,
pub bind_address: Option<CString>,
pub certificate_type: CertificateType,
pub ice_transport_policy: TransportPolicy,
pub enable_ice_tcp: bool,
pub enable_ice_udp_mux: bool,
pub port_range_begin: u16,
pub port_range_end: u16,
pub mtu: i32,
pub max_message_size: i32,
pub disable_auto_negotiation: bool,
/* private fields */
}
Fields
ice_servers: Vec<CString>
proxy_server: Option<CString>
bind_address: Option<CString>
certificate_type: CertificateType
ice_transport_policy: TransportPolicy
enable_ice_tcp: bool
enable_ice_udp_mux: bool
port_range_begin: u16
port_range_end: u16
mtu: i32
max_message_size: i32
disable_auto_negotiation: bool
Implementations
sourceimpl RtcConfig
impl RtcConfig
pub fn new<S: AsRef<str>>(ice_servers: &[S]) -> Self
pub fn bind_address<S: AsRef<str>>(self, addr: &S) -> Self
pub fn proxy_server<S: AsRef<str>>(self, server: &S) -> Self
pub fn certificate_type(self, certificate_type: CertificateType) -> Self
pub fn enable_ice_tcp(self) -> Self
pub fn enable_ice_udp_mux(self) -> Self
pub fn ice_transport_policy(self, ice_transport_policy: TransportPolicy) -> Self
pub fn port_range_begin(self, port_range_begin: u16) -> Self
pub fn port_range_end(self, port_range_end: u16) -> Self
pub fn mtu(self, mtu: i32) -> Self
pub fn max_message_size(self, max_message_size: i32) -> Self
Trait Implementations
impl Send for RtcConfig
impl Sync for RtcConfig
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more