pub async fn write_error<W: AsyncWriteExt + Unpin>( w: &mut W, v: NixError, ) -> Result<()>
Write a NixError struct to the stream.