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
sourceimpl Clone for DataChannelMessage
impl Clone for DataChannelMessage
sourcefn clone(&self) -> DataChannelMessage
fn clone(&self) -> DataChannelMessage
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for DataChannelMessage
impl Debug for DataChannelMessage
sourceimpl Default for DataChannelMessage
impl Default for DataChannelMessage
sourcefn default() -> DataChannelMessage
fn default() -> DataChannelMessage
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for DataChannelMessage
impl Send for DataChannelMessage
impl Sync for DataChannelMessage
impl Unpin for DataChannelMessage
impl UnwindSafe for DataChannelMessage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more