fn write_frame_to_guest(&mut self) -> bool {
        let max_iterations = self.queues[RX_INDEX].actual_size();
        for _ in 0..max_iterations {
            match self.do_write_frame_to_guest() {
                Ok(()) => return true,
                Err(FrontendError::EmptyQueue) | Err(FrontendError::AddUsed) => {
                    return false;
                }
                Err(_) => {
                    // retry
                    continue;
                }
            }
        }

        false
    }
// Copies a single frame from `self.rx_frame_buf` into the guest. In case of an error retries
// the operation if possible. Returns true if the operation was successfull.
Copies a single frame from `self.rx_frame_buf` into the guest. In case of an error retries
the operation if possible. Returns true if the operation was successfull.
Copies a single frame from ` self . rx_frame_buf ` into the guest . In case of an error retries the operation if possible . Returns true if the operation was successfull .
fn write_frame_to_guest(&mut self) -> bool {
        let max_iterations = self.queues[RX_INDEX].actual_size();
        for _ in 0..max_iterations {
            match self.do_write_frame_to_guest() {
                Ok(()) => return true,
                Err(FrontendError::EmptyQueue) | Err(FrontendError::AddUsed) => {
                    return false;
                }
                Err(_) => {
                    // retry
                    continue;
                }
            }
        }
        false
    }
fn write_frame_to_guest ( & mut self ) -> bool { let max_iterations = self . queues [ RX_INDEX ] . actual_size ( ) ; for _ in 0 .. max_iterations { match self . do_write_frame_to_guest ( ) { Ok ( ( ) ) => return true , Err ( FrontendError :: EmptyQueue ) | Err ( FrontendError :: AddUsed ) => { return false ; } Err ( _ ) => { // retry continue ; } } } false }
Copies a single frame from `self.rx_frame_buf` into the guest.
Copies a single frame from ` self . rx_frame_buf ` into the guest .
&mut self
&mut self