Struct skyway_webrtc_gateway_api::data::DcInit
source · [−]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
sourceimpl<'de> Deserialize<'de> for DcInit
impl<'de> Deserialize<'de> for DcInit
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for DcInit
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more