pub struct TransportConfig { /* private fields */ }Expand description
Config collects the arguments to create_association construction into a single structure
Implementations§
Source§impl TransportConfig
impl TransportConfig
Sourcepub fn with_sctp_port(self, value: u16) -> Self
pub fn with_sctp_port(self, value: u16) -> Self
Sets the SCTP port. WebRTC always uses 5000.
Sourcepub fn with_max_receive_buffer_size(self, value: u32) -> Self
pub fn with_max_receive_buffer_size(self, value: u32) -> Self
Sets the advertised receive window (a_rwnd), bounding how much unacknowledged data a peer may have in flight toward this endpoint.
Sourcepub fn with_max_message_size(self, value: u32) -> Self
pub fn with_max_message_size(self, value: u32) -> Self
Sets the largest message this endpoint will accept.
Sourcepub fn with_max_num_outbound_streams(self, value: u16) -> Self
pub fn with_max_num_outbound_streams(self, value: u16) -> Self
Sets how many outbound streams to request during the handshake.
Sourcepub fn with_max_num_inbound_streams(self, value: u16) -> Self
pub fn with_max_num_inbound_streams(self, value: u16) -> Self
Sets how many inbound streams this endpoint will accept.
Sourcepub fn with_timer_config(self, value: TimerConfig) -> Self
pub fn with_timer_config(self, value: TimerConfig) -> Self
Overrides the retransmission limits; see TimerConfig.
Sourcepub fn max_receive_buffer_size(&self) -> u32
pub fn max_receive_buffer_size(&self) -> u32
The configured receive window in bytes.
Sourcepub fn max_message_size(&self) -> u32
pub fn max_message_size(&self) -> u32
The configured maximum message size in bytes.
Sourcepub fn max_num_outbound_streams(&self) -> u16
pub fn max_num_outbound_streams(&self) -> u16
The configured outbound stream count.
Sourcepub fn max_num_inbound_streams(&self) -> u16
pub fn max_num_inbound_streams(&self) -> u16
The configured inbound stream count.
Sourcepub fn timer_config(&self) -> TimerConfig
pub fn timer_config(&self) -> TimerConfig
The configured retransmission limits.
Trait Implementations§
Source§impl Clone for TransportConfig
impl Clone for TransportConfig
Source§fn clone(&self) -> TransportConfig
fn clone(&self) -> TransportConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransportConfig
impl Debug for TransportConfig
Auto Trait Implementations§
impl Freeze for TransportConfig
impl RefUnwindSafe for TransportConfig
impl Send for TransportConfig
impl Sync for TransportConfig
impl Unpin for TransportConfig
impl UnsafeUnpin for TransportConfig
impl UnwindSafe for TransportConfig
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