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§
source§impl Clone for DataChannelOpen
impl Clone for DataChannelOpen
source§fn clone(&self) -> DataChannelOpen
fn clone(&self) -> DataChannelOpen
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DataChannelOpen
impl Debug for DataChannelOpen
source§impl Marshal for DataChannelOpen
impl Marshal for DataChannelOpen
source§impl MarshalSize for DataChannelOpen
impl MarshalSize for DataChannelOpen
fn marshal_size(&self) -> usize
source§impl PartialEq for DataChannelOpen
impl PartialEq for DataChannelOpen
source§fn 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 ==
.source§impl Unmarshal for DataChannelOpen
impl Unmarshal for DataChannelOpen
impl Eq for DataChannelOpen
impl StructuralPartialEq for DataChannelOpen
Auto Trait Implementations§
impl Freeze for DataChannelOpen
impl RefUnwindSafe for DataChannelOpen
impl Send for DataChannelOpen
impl Sync for DataChannelOpen
impl Unpin for DataChannelOpen
impl UnwindSafe for DataChannelOpen
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more