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§
Source§impl RtcConfig
impl RtcConfig
pub fn new<S>(ice_servers: &[S]) -> RtcConfig
pub fn bind_address<S>(self, addr: &S) -> RtcConfig
pub fn proxy_server<S>(self, server: &S) -> RtcConfig
pub fn certificate_type(self, certificate_type: CertificateType) -> RtcConfig
pub fn enable_ice_tcp(self) -> RtcConfig
pub fn enable_ice_udp_mux(self) -> RtcConfig
pub fn ice_transport_policy( self, ice_transport_policy: TransportPolicy, ) -> RtcConfig
pub fn port_range_begin(self, port_range_begin: u16) -> RtcConfig
pub fn port_range_end(self, port_range_end: u16) -> RtcConfig
pub fn mtu(self, mtu: i32) -> RtcConfig
pub fn max_message_size(self, max_message_size: i32) -> RtcConfig
Trait Implementations§
impl Send for RtcConfig
impl Sync for RtcConfig
Auto Trait Implementations§
impl Freeze for RtcConfig
impl RefUnwindSafe for RtcConfig
impl Unpin for RtcConfig
impl UnwindSafe for RtcConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more