pub struct ControlPacketData {
pub header: PacketHeader,
pub remote_session_id: Option<SessionId>,
pub acks: Vec<PacketId>,
pub message_packet_id: Option<PacketId>,
pub payload: Bytes,
}Expand description
Control channel packet data
Fields§
§header: PacketHeaderPacket header
remote_session_id: Option<SessionId>Remote session ID (for ACK packets)
acks: Vec<PacketId>Acknowledgments
message_packet_id: Option<PacketId>Message packet ID (for reliability)
payload: BytesPayload (TLS records)
Trait Implementations§
Source§impl Clone for ControlPacketData
impl Clone for ControlPacketData
Source§fn clone(&self) -> ControlPacketData
fn clone(&self) -> ControlPacketData
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 ControlPacketData
impl RefUnwindSafe for ControlPacketData
impl Send for ControlPacketData
impl Sync for ControlPacketData
impl Unpin for ControlPacketData
impl UnwindSafe for ControlPacketData
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