pub struct DataPacketData {
pub header: PacketHeader,
pub peer_id: Option<u32>,
pub payload: Bytes,
}Expand description
Data channel packet data
Fields§
§header: PacketHeaderPacket header
peer_id: Option<u32>Peer ID (for P_DATA_V2)
payload: BytesEncrypted payload
Trait Implementations§
Source§impl Clone for DataPacketData
impl Clone for DataPacketData
Source§fn clone(&self) -> DataPacketData
fn clone(&self) -> DataPacketData
Returns a duplicate 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 moreAuto Trait Implementations§
impl !Freeze for DataPacketData
impl RefUnwindSafe for DataPacketData
impl Send for DataPacketData
impl Sync for DataPacketData
impl Unpin for DataPacketData
impl UnwindSafe for DataPacketData
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