pub fn err_from_writable<'a, 'b>(
        mut chain: WritableChain<'a, 'b>,
        status: u32,
        latency_bytes: u32,
    ) -> Result<(), Error> {
        // Write zeroes to fill out the buffer before writing the status.
        let size = buffer_size(&chain)?;
        let mut vec: std::vec::Vec<u8> = std::vec::Vec::new();
        vec.resize(size, 0u8);
        chain.write_all(&vec)?;
        reply_with_code(chain, status, latency_bytes)
    }
/// Writes an rxq error response using the given status code.
/// Returns an error only if the virtqueue connection is broken.
Writes an rxq error response using the given status code.
Returns an error only if the virtqueue connection is broken.
Writes an rxq error response using the given status code . Returns an error only if the virtqueue connection is broken .
pub fn err_from_writable<'a, 'b>(
        mut chain: WritableChain<'a, 'b>,
        status: u32,
        latency_bytes: u32,
    ) -> Result<(), Error> {
        // Write zeroes to fill out the buffer before writing the status.
        let size = buffer_size(&chain)?;
        let mut vec: std::vec::Vec<u8> = std::vec::Vec::new();
        vec.resize(size, 0u8);
        chain.write_all(&vec)?;
        reply_with_code(chain, status, latency_bytes)
    }
pub fn err_from_writable < ' a , ' b > ( mut chain : WritableChain < ' a , ' b > , status : u32 , latency_bytes : u32 , ) -> Result < ( ) , Error > { // Write zeroes to fill out the buffer before writing the status. let size = buffer_size ( & chain ) ? ; let mut vec : std :: vec :: Vec < u8 > = std :: vec :: Vec :: new ( ) ; vec . resize ( size , 0u8 ) ; chain . write_all ( & vec ) ? ; reply_with_code ( chain , status , latency_bytes ) }
Writes an rxq error response using the given status code.
Writes an rxq error response using the given status code .
chain
WritableChain<'a, 'b>
status
u32
latency_bytes
u32
chain
WritableChain<'a, 'b>
status
u32
latency_bytes
u32