added EncryptedAsyncWrite::{flush,shutdown}() TODOs

no-dual
Avril 4 years ago
parent 2ebdf4ac46
commit b3a95435d1
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -137,10 +137,10 @@ impl<'a, S: AsyncWrite> AsyncWrite for EncryptedWriteHalf<'a, S>
poll
}
fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), io::Error>> {
todo!()
todo!("TODO: Copy the impl of chacha20stream's `AsyncSink::flush()`")
}
fn poll_shutdown(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), io::Error>> {
todo!()
todo!("TODO: Copy the impl of chacha20stream's `AsyncSink::shutdown()`")
}
}
//TODO: EncryptedWriteHalf's AsyncWrite impl should en/decrypt the input buffer into `crypt_buffer` then send it to `backing`.

Loading…
Cancel
Save