INNER CODE UNIT · Rust
ordered
webrtc-rs/webrtc · src/data_channel/mod.rs:82
async fn ordered(&self) -> Result<bool>;
/// Returns the maximum packet lifetime in milliseconds, or `None` if the channel is
/// reliable.
async fn max_packet_life_time(&self) -> Result<Option<u16>>;
/// Returns the maximum number of retransmissions, or `None` if the channel is reliable.
async fn max_retransmits(&self) -> Result<Option<u16>>;
/// Returns the subprotocol name configured for this data channel, or the empty string if
/// none was negotiated.
async fn protocol(&self) -> Result<String>;
/// Returns whether this data channel was negotiated out-of-band by the application
/// (`true`), or established in-band over DCEP (`false`).
async fn negotiated(&self) -> Result<bool>;
/// Returns the identifier for this data channel.
///
/// The value is initially null — which is what is returned if the id was not provided
/// at channel creation time and the DTLS role of the SCTP transport has not yet been
/// negotiated. Otherwise it returns the id that was either selected by the application
/// or generated. Once set to a non-null value it does not change.