Struct webrtc_data::message::message_channel_open::DataChannelOpen [−][src]
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: ChannelTypepriority: u16reliability_parameter: u32label: Vec<u8>protocol: Vec<u8>Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for DataChannelOpenimpl Send for DataChannelOpenimpl Sync for DataChannelOpenimpl Unpin for DataChannelOpenimpl UnwindSafe for DataChannelOpenBlanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V