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

Methods

impl UserMessage
[src]

Trait Implementations

impl Clone for UserMessage
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for UserMessage
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for UserMessage
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for UserMessage

impl Sync for UserMessage