Function enqueue
fn enqueue(
outbound: &mut PacketWriter<GrowBuffer>,
packet: &Packet<'_>,
) -> Result<(), Error>Available on crate feature
tokio only.Expand description
Encodes a packet into the pending outbound buffer for the writer task.
ยงErrors
Returns Error::Alloc if the buffer cannot allocate. The connection
must then end, because the packet may acknowledge state the client
already recorded.