Fortune for chacha20stream's current commit: Half blessing − 半吉read-stream-wrapper-async
parent
e536d6b232
commit
5d1ac4fa7a
@ -0,0 +1,14 @@
|
|||||||
|
//! Asyncronous `AsyncRead` wrapper.
|
||||||
|
use super::*;
|
||||||
|
|
||||||
|
/// TODO: Document
|
||||||
|
//#[derive(Debug)]
|
||||||
|
#[pin_project]
|
||||||
|
pub struct Source<R>
|
||||||
|
{
|
||||||
|
#[pin] stream: R,
|
||||||
|
|
||||||
|
crypter: Crypter, // for chacha, finalize does nothing it seems. we can also call it multiple times.
|
||||||
|
|
||||||
|
buffer: BufferVec, // used to buffer the operation (ad-hoc-buffer wouldn't work for async operations as the buffer may need to be saved over yields.)
|
||||||
|
}
|
Loading…
Reference in new issue