fn write_all_encoded_output(&mut self) -> Result<()> {
        while self.output_occupied_len > 0 {
            let remaining_len = self.output_occupied_len;
            match self.write_to_delegate(remaining_len) {
                // try again on interrupts ala write_all
                Err(ref e) if e.kind() == ErrorKind::Interrupted => {}
                // other errors return
                Err(e) => return Err(e),
                // success no-ops because remaining length is already updated
                Ok(_) => {}
            };
        }

        debug_assert_eq!(0, self.output_occupied_len);
        Ok(())
    }
/// Write all buffered encoded output. If this returns `Ok`, `self.output_occupied_len` is `0`.
///
/// This is basically write_all for the remaining buffered data but without the undesirable
/// abort-on-`Ok(0)` behavior.
///
/// # Errors
///
/// Any error emitted by the delegate writer abort the write loop and is returned, unless it's
/// `Interrupted`, in which case the error is ignored and writes will continue.
Write all buffered encoded output.
Write all buffered encoded output .
fn write_all_encoded_output(&mut self) -> Result<()> {
        while self.output_occupied_len > 0 {
            let remaining_len = self.output_occupied_len;
            match self.write_to_delegate(remaining_len) {
                // try again on interrupts ala write_all
                Err(ref e) if e.kind() == ErrorKind::Interrupted => {}
                // other errors return
                Err(e) => return Err(e),
                // success no-ops because remaining length is already updated
                Ok(_) => {}
            };
        }
        debug_assert_eq!(0, self.output_occupied_len);
        Ok(())
    }
fn write_all_encoded_output ( & mut self ) -> Result < ( ) > { while self . output_occupied_len > 0 { let remaining_len = self . output_occupied_len ; match self . write_to_delegate ( remaining_len ) { // try again on interrupts ala write_all Err ( ref e ) if e . kind ( ) == ErrorKind :: Interrupted => { } // other errors return Err ( e ) => return Err ( e ) , // success no-ops because remaining length is already updated Ok ( _ ) => { } } ; } debug_assert_eq ! ( 0 self output_occupied_len ) ; Ok ( ( ) ) }
Write all buffered encoded output.
Write all buffered encoded output .
&mut self
&mut self
errors
Any error emitted by the delegate writer abort the write loop and is returned, unless it's
`Interrupted`, in which case the error is ignored and writes will continue.
Any error emitted by the delegate writer abort the write loop and is returned unless it ' s ` Interrupted ` in which case the error is ignored and writes will continue .