pub struct PacketBatch {
pub packets: Vec<OutboundPacket>,
}Expand description
Batch of outbound packets.
Fields§
§packets: Vec<OutboundPacket>Packets to send together.
Implementations§
Source§impl PacketBatch
impl PacketBatch
Sourcepub fn push(&mut self, packet: OutboundPacket)
pub fn push(&mut self, packet: OutboundPacket)
Adds one packet to the batch.
Trait Implementations§
Source§impl Clone for PacketBatch
impl Clone for PacketBatch
Source§fn clone(&self) -> PacketBatch
fn clone(&self) -> PacketBatch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PacketBatch
impl Debug for PacketBatch
Source§impl Default for PacketBatch
impl Default for PacketBatch
Source§fn default() -> PacketBatch
fn default() -> PacketBatch
Returns the “default value” for a type. Read more
impl Eq for PacketBatch
Source§impl PartialEq for PacketBatch
impl PartialEq for PacketBatch
impl StructuralPartialEq for PacketBatch
Auto Trait Implementations§
impl Freeze for PacketBatch
impl RefUnwindSafe for PacketBatch
impl Send for PacketBatch
impl Sync for PacketBatch
impl Unpin for PacketBatch
impl UnsafeUnpin for PacketBatch
impl UnwindSafe for PacketBatch
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