Struct async_datachannel::RtcConfig
source · [−]pub struct RtcConfig {
pub ice_servers: Vec<CString, Global>,
pub bind_address: Option<CString>,
pub certificate_type: CertificateType,
pub ice_transport_policy: TransportPolicy,
pub enable_ice_tcp: 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, Global>
bind_address: Option<CString>
certificate_type: CertificateType
ice_transport_policy: TransportPolicy
enable_ice_tcp: 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>(ice_servers: &[S]) -> RtcConfig where
S: AsRef<str>,
pub fn bind_address<S>(self, addr: &S) -> RtcConfig where
S: AsRef<str>,
pub fn certificate_type(self, certificate_type: CertificateType) -> RtcConfig
pub fn enable_ice_tcp(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
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more