pub struct ChannelData {
pub id: ChannelId,
pub binary: bool,
pub data: Vec<u8>,
}
Expand description
Data channel data from remote peer.
This is obtained via Event::ChannelData
.
Fields§
§id: ChannelId
Identifier of the channel this data was sent on.
The channel would have been previously announced via
Event::ChannelOpen
.
binary: bool
Tells whether the sender sent this data as binary or text.
data: Vec<u8>
The actual data sent. If binary
is false, this can be converted to text.
Trait Implementations§
Source§impl Debug for ChannelData
impl Debug for ChannelData
Source§impl PartialEq for ChannelData
impl PartialEq for ChannelData
impl Eq for ChannelData
impl StructuralPartialEq for ChannelData
Auto Trait Implementations§
impl Freeze for ChannelData
impl RefUnwindSafe for ChannelData
impl Send for ChannelData
impl Sync for ChannelData
impl Unpin for ChannelData
impl UnwindSafe for ChannelData
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