pub struct RtcMessage {
pub channel_id: u32,
pub is_binary: bool,
pub data: Vec<u8>,
}Expand description
Received data channel message.
Fields§
§channel_id: u32Channel on which the message arrived.
is_binary: booltrue when the payload is raw bytes, false for UTF-8 text.
data: Vec<u8>Message payload.
Implementations§
Auto Trait Implementations§
impl Freeze for RtcMessage
impl RefUnwindSafe for RtcMessage
impl Send for RtcMessage
impl Sync for RtcMessage
impl Unpin for RtcMessage
impl UnsafeUnpin for RtcMessage
impl UnwindSafe for RtcMessage
Blanket Implementations§
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