Struct webrtc::data_channel::data_channel_init::RTCDataChannelInit
source · pub struct RTCDataChannelInit {
pub ordered: Option<bool>,
pub max_packet_life_time: Option<u16>,
pub max_retransmits: Option<u16>,
pub protocol: Option<String>,
pub negotiated: Option<u16>,
}
Expand description
DataChannelConfig can be used to configure properties of the underlying channel such as data reliability.
Fields§
§ordered: Option<bool>
ordered indicates if data is allowed to be delivered out of order. The default value of true, guarantees that data will be delivered in order.
max_packet_life_time: Option<u16>
max_packet_life_time limits the time (in milliseconds) during which the channel will transmit or retransmit data if not acknowledged. This value may be clamped if it exceeds the maximum value supported.
max_retransmits: Option<u16>
max_retransmits limits the number of times a channel will retransmit data if not successfully delivered. This value may be clamped if it exceeds the maximum value supported.
protocol: Option<String>
protocol describes the subprotocol name used for this channel.
negotiated: Option<u16>
negotiated describes if the data channel is created by the local peer or the remote peer. The default value of None tells the user agent to announce the channel in-band and instruct the other peer to dispatch a corresponding DataChannel. If set to Some(id), it is up to the application to negotiate the channel and create an DataChannel with the same id at the other peer.
Trait Implementations§
source§impl Clone for RTCDataChannelInit
impl Clone for RTCDataChannelInit
source§fn clone(&self) -> RTCDataChannelInit
fn clone(&self) -> RTCDataChannelInit
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more