// Flushes the buffer of encrypted data.  Returns Ok(true) if
// everything's ok, Ok(false) if we couldn't write everything and
// should stop.
Flushes the buffer of encrypted data.  Returns Ok(true) if
everything's ok, Ok(false) if we couldn't write everything and
should stop.
Flushes the buffer of encrypted data . Returns Ok ( true ) if everything ' s ok Ok ( false ) if we couldn ' t write everything and should stop .
fn flush_enc_buf(&mut self) -> io::Result<bool> {
        let n = try!(self.sink.write(&self.enc_buf));
        if n < self.enc_buf.len() {
            let rest = self.enc_buf.split_off(n);
            self.enc_buf = rest;
            Ok(false)
        } else {
            self.enc_buf.truncate(0);
            Ok(true)
        }
    }
fn flush_enc_buf ( & mut self ) -> io :: Result < bool > { let n = try ! ( self sink write ( self enc_buf ) ) ; if n < self . enc_buf . len ( ) { let rest = self . enc_buf . split_off ( n ) ; self . enc_buf = rest ; Ok ( false ) } else { self . enc_buf . truncate ( 0 ) ; Ok ( true ) } }
Flushes the buffer of encrypted data.
Flushes the buffer of encrypted data .
&mut self