pub async fn write_one_packet<S, R>(io: S, packet: R) -> Result<S, NetworkError>
where S: AsyncWrite + Unpin, R: Into<Bytes>,