Struct webrtc_sctp::UserMessage [−][src]
pub struct UserMessage { pub tsn: TSN, pub unordered: bool, pub stream_id: u16, pub ssn: SSN, pub payload_protocol_id: u32, pub buffer: Vec<u8>, }
A UserMessage represents a message that has been provided to (or is being provided by) the upper-layer protocol. The only difference between this and message is that a UserMessage doesn't track its payload in a Buffer. TODO: This is awkward. We should find some way to use the same struct for both purposes, even if it means exposing the user to Buffer.
Fields
tsn: TSN
unordered: bool
stream_id: u16
ssn: SSN
payload_protocol_id: u32
buffer: Vec<u8>
Methods
impl UserMessage
[src]
impl UserMessage
pub fn new(
unordered: bool,
stream_id: u16,
payload_protocol_id: u32,
buffer: Vec<u8>
) -> UserMessage
[src]
pub fn new(
unordered: bool,
stream_id: u16,
payload_protocol_id: u32,
buffer: Vec<u8>
) -> UserMessage
Trait Implementations
impl Clone for UserMessage
[src]
impl Clone for UserMessage
fn clone(&self) -> UserMessage
[src]
fn clone(&self) -> UserMessage
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for UserMessage
[src]
impl PartialEq for UserMessage
fn eq(&self, other: &UserMessage) -> bool
[src]
fn eq(&self, other: &UserMessage) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &UserMessage) -> bool
[src]
fn ne(&self, other: &UserMessage) -> bool
This method tests for !=
.
impl Debug for UserMessage
[src]
impl Debug for UserMessage
Auto Trait Implementations
impl Send for UserMessage
impl Send for UserMessage
impl Sync for UserMessage
impl Sync for UserMessage