rtc 0.9.0

Sans-I/O WebRTC implementation in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
use bytes::BytesMut;

/// RTCDataChannelMessage represents a message received from the
/// data channel. IsString will be set to true if the incoming
/// message is of the string type. Otherwise, the message is of
/// a binary type.
#[derive(Default, Debug, Clone, Eq, PartialEq)]
pub struct RTCDataChannelMessage {
    pub is_string: bool,
    pub data: BytesMut,
}