You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: max_file_size.rs
    path of file: ./repos/pingora/pingora-cache/src
    
    the code of the file until where you have to start completion: // Copyright 2024 Cloudflare, Inc.
//
// Licensed under the Apache License, Version 2.0 (t
    
    async fn write_body(&mut self, data: Bytes, eof: bool) -> pingora_error::Result<()> {
        // fail if writing the body would exceed the max_file_size_bytes
        if self.bytes_written + data.len() > self.max_file_size_bytes {
            return Error::e_explain(
                ERR_RESPONSE_TOO_LARGE,
                format!(
                    "writing data of size {} bytes would exceed max file size of {} bytes",
                    data.len(),
                    self.max_file_size_bytes
                ),
            );
        }

        self.bytes_written += data.len();
        self.inner.write_body(data, eof).await
    }