pub struct IncomingPackets { /* private fields */ }Expand description
Collection of incoming packets (0, 1, or many) with their types. Used by command-based packet processing to return variable numbers of packets.
Implementations§
Source§impl IncomingPackets
impl IncomingPackets
Sourcepub fn one(packet: Packet, packet_type: PacketType) -> Self
pub fn one(packet: Packet, packet_type: PacketType) -> Self
Creates a collection with a single packet and type.
Sourcepub fn many(vec: VecDeque<(Packet, PacketType)>) -> Self
pub fn many(vec: VecDeque<(Packet, PacketType)>) -> Self
Creates a collection with multiple packets.
Trait Implementations§
Source§impl Debug for IncomingPackets
impl Debug for IncomingPackets
Source§impl IntoIterator for IncomingPackets
impl IntoIterator for IncomingPackets
Source§type Item = (Packet, PacketType)
type Item = (Packet, PacketType)
The type of the elements being iterated over.
Source§type IntoIter = ZeroOrMore<<IncomingPackets as IntoIterator>::Item>
type IntoIter = ZeroOrMore<<IncomingPackets as IntoIterator>::Item>
Which kind of iterator are we turning this into?
Auto Trait Implementations§
impl Freeze for IncomingPackets
impl RefUnwindSafe for IncomingPackets
impl Send for IncomingPackets
impl Sync for IncomingPackets
impl Unpin for IncomingPackets
impl UnwindSafe for IncomingPackets
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