pub struct OutgoingPacket {
pub header: PacketHeader,
pub payload: Vec<u8>,
pub fragment_header: Option<FragmentHeader>,
}Expand description
A complete outgoing packet ready for serialization.
Fields§
§header: PacketHeader§payload: Vec<u8>§fragment_header: Option<FragmentHeader>Implementations§
Trait Implementations§
Source§impl Clone for OutgoingPacket
impl Clone for OutgoingPacket
Source§fn clone(&self) -> OutgoingPacket
fn clone(&self) -> OutgoingPacket
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 OutgoingPacket
impl RefUnwindSafe for OutgoingPacket
impl Send for OutgoingPacket
impl Sync for OutgoingPacket
impl Unpin for OutgoingPacket
impl UnsafeUnpin for OutgoingPacket
impl UnwindSafe for OutgoingPacket
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