Struct webrtc_data::message::message_channel_open::DataChannelOpen
source · [−]pub struct DataChannelOpen {
pub channel_type: ChannelType,
pub priority: u16,
pub reliability_parameter: u32,
pub label: Vec<u8>,
pub protocol: Vec<u8>,
}
Expand description
The data-part of an data-channel OPEN message without the message type.
Memory layout
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| (Message Type)| Channel Type | Priority |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Reliability Parameter |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Label Length | Protocol Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| |
| Label |
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| |
| Protocol |
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Fields
channel_type: ChannelType
priority: u16
reliability_parameter: u32
label: Vec<u8>
protocol: Vec<u8>
Trait Implementations
sourceimpl Clone for DataChannelOpen
impl Clone for DataChannelOpen
sourcefn clone(&self) -> DataChannelOpen
fn clone(&self) -> DataChannelOpen
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DataChannelOpen
impl Debug for DataChannelOpen
sourceimpl Marshal for DataChannelOpen
impl Marshal for DataChannelOpen
sourceimpl MarshalSize for DataChannelOpen
impl MarshalSize for DataChannelOpen
fn marshal_size(&self) -> usize
sourceimpl PartialEq<DataChannelOpen> for DataChannelOpen
impl PartialEq<DataChannelOpen> for DataChannelOpen
sourcefn eq(&self, other: &DataChannelOpen) -> bool
fn eq(&self, other: &DataChannelOpen) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DataChannelOpen) -> bool
fn ne(&self, other: &DataChannelOpen) -> bool
This method tests for !=
.
sourceimpl Unmarshal for DataChannelOpen
impl Unmarshal for DataChannelOpen
impl Eq for DataChannelOpen
impl StructuralEq for DataChannelOpen
impl StructuralPartialEq for DataChannelOpen
Auto Trait Implementations
impl RefUnwindSafe for DataChannelOpen
impl Send for DataChannelOpen
impl Sync for DataChannelOpen
impl Unpin for DataChannelOpen
impl UnwindSafe for DataChannelOpen
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