pub async fn read_error<R: AsyncReadExt + Unpin>(r: &mut R) -> Result<NixError>
Read a NixError struct from the stream.