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
Auto Trait Implementations§
impl !Freeze for DataChannelMessage
impl RefUnwindSafe for DataChannelMessage
impl Send for DataChannelMessage
impl Sync for DataChannelMessage
impl Unpin for DataChannelMessage
impl UnwindSafe for DataChannelMessage
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more