pub fn to_packet_batches<T: Serialize>(
    xs: &[T],
    chunks: usize
) -> Vec<PacketBatch>Notable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
    A: Allocator