From b3a95435d1e3e423b9a5ccef5f8c7c0461a5671d Mon Sep 17 00:00:00 2001 From: Avril Date: Sat, 17 Apr 2021 01:58:09 +0100 Subject: [PATCH] added EncryptedAsyncWrite::{flush,shutdown}() TODOs --- src/stream.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stream.rs b/src/stream.rs index 0d56051..ce2640b 100644 --- a/src/stream.rs +++ b/src/stream.rs @@ -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> { - todo!() + todo!("TODO: Copy the impl of chacha20stream's `AsyncSink::flush()`") } fn poll_shutdown(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll> { - 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`.