pub struct DcInit {
    pub ordered: Option<bool>,
    pub maxPacketLifeTime: Option<usize>,
    pub maxRetransmits: Option<usize>,
    pub protocol: Option<String>,
    pub negotiated: Option<bool>,
    pub id: Option<usize>,
    pub priority: Option<String>,
}
Expand description

Query parameter for POST /data/connections

Shows DataConnection parameters in Browser layer. It’s almost same as browser parameters.

https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel

Fields

ordered: Option<bool>

Indicates whether or not the data channel guarantees in-order delivery of messages; the default is true, which indicates that the data channel is indeed ordered.

maxPacketLifeTime: Option<usize>

The amount of time, in milliseconds, the browser is allowed to take to attempt to transmit a message.

maxRetransmits: Option<usize>

The maximum number of times the WebRTC Gateway should try to retransmit a message before giving up.

protocol: Option<String>

containing the name of the sub-protocol in use. If no protocol was specified when the data channel was created, then this property’s value is “”.

negotiated: Option<bool>

Indicates whether the RTCDataChannel’s connection was negotiated by the Web app (true) or by the WebRTC layer (false).

id: Option<usize>

ID number (between 0 and 65,534) which uniquely identifies the RTCDataChannel.

priority: Option<String>

Show priority of this channel.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more