pub struct DataChannelMessage {
pub is_string: bool,
pub data: Bytes,
}
Expand description
DataChannelMessage 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.
Fields§
§is_string: bool
§data: Bytes
Trait Implementations§
source§impl Clone for DataChannelMessage
impl Clone for DataChannelMessage
source§fn clone(&self) -> DataChannelMessage
fn clone(&self) -> DataChannelMessage
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 DataChannelMessage
impl Debug for DataChannelMessage
source§impl Default for DataChannelMessage
impl Default for DataChannelMessage
source§fn default() -> DataChannelMessage
fn default() -> DataChannelMessage
Returns the “default value” for a type. Read more