fn flush(&mut self) -> io::Result<()> {
        try!(self.flush_enc_buf());

        if self.buf.is_empty() {
            self.sink.flush()
        } else {
            Err(io::Error::new(io::ErrorKind::Other, "can't flush when not on a 64-bit block boundary",
                               Some(format!("we have {} plaintext bytes that we can't encrypt until a full block is done", self.buf.len()))))
        }
    }
/// Passes the flush call through to the underlying
/// `std::io::Write` object, but only if the internal buffer is
/// clear.  If we have some cached bytes that are waiting for a
/// full block before they can be encrypted, it is an error to try
/// to call `flush()`.
Passes the flush call through to the underlying
`std::io::Write` object, but only if the internal buffer is
clear.  If we have some cached bytes that are waiting for a
full block before they can be encrypted, it is an error to try
to call `flush()`.
Passes the flush call through to the underlying ` std :: io :: Write ` object but only if the internal buffer is clear . If we have some cached bytes that are waiting for a full block before they can be encrypted it is an error to try to call ` flush () ` .
fn flush(&mut self) -> io::Result<()> {
        try!(self.flush_enc_buf());
        if self.buf.is_empty() {
            self.sink.flush()
        } else {
            Err(io::Error::new(io::ErrorKind::Other, "can't flush when not on a 64-bit block boundary",
                               Some(format!("we have {} plaintext bytes that we can't encrypt until a full block is done", self.buf.len()))))
        }
    }
fn flush ( & mut self ) -> io :: Result < ( ) > { try ! ( self flush_enc_buf ( ) ) ; if self . buf . is_empty ( ) { self . sink . flush ( ) } else { Err ( io :: Error :: new ( io :: ErrorKind :: Other , " " , Some ( format ! ( " " self buf len ( ) ) ) ) ) } }
Passes the flush call through to the underlying
`std::io::Write` object, but only if the internal buffer is
clear.
Passes the flush call through to the underlying ` std :: io :: Write ` object but only if the internal buffer is clear .
&mut self
&mut self