[][src]Struct skyway_webrtc_gateway_api::data::DcInit

pub struct DcInit {
    pub ordered: bool,
    pub maxPacketLifeTime: usize,
    pub maxRetransmits: usize,
    pub protocol: String,
    pub negotiated: bool,
    pub id: usize,
    pub priority: String,
}

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: 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: usize

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

maxRetransmits: usize

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

protocol: 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: bool

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

id: usize

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

priority: String

Show priority of this channel.

Trait Implementations

impl Clone for DcInit[src]

impl Debug for DcInit[src]

impl<'de> Deserialize<'de> for DcInit[src]

impl PartialEq<DcInit> for DcInit[src]

impl Serialize for DcInit[src]

impl StructuralPartialEq for DcInit[src]

Auto Trait Implementations

impl RefUnwindSafe for DcInit

impl Send for DcInit

impl Sync for DcInit

impl Unpin for DcInit

impl UnwindSafe for DcInit

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.