pub struct MemoryReader(pub Vec<u8>);Expand description
Streaming In-Memory Reader
Available with feature streaming only
Tuple Fields§
§0: Vec<u8>Trait Implementations§
Source§impl Debug for MemoryReader
impl Debug for MemoryReader
Source§impl EncStreamReader for MemoryReader
impl EncStreamReader for MemoryReader
Source§fn debug_reader(&self, f: &mut Formatter<'_>) -> Result
fn debug_reader(&self, f: &mut Formatter<'_>) -> Result
Debug output for this reader
Source§fn spawn_reader_encryption<'async_trait>(
self,
chunk_size: ChunkSizeKb,
tx: Sender<Result<(LastStreamElement, StreamChunk), CryptrError>>,
) -> Pin<Box<dyn Future<Output = Result<JoinHandle<Result<(), CryptrError>>, CryptrError>> + Send + 'async_trait>>where
Self: 'async_trait,
fn spawn_reader_encryption<'async_trait>(
self,
chunk_size: ChunkSizeKb,
tx: Sender<Result<(LastStreamElement, StreamChunk), CryptrError>>,
) -> Pin<Box<dyn Future<Output = Result<JoinHandle<Result<(), CryptrError>>, CryptrError>> + Send + 'async_trait>>where
Self: 'async_trait,
This must spawn the reader into the async context and then return.
The reason is, that you are way more flexible optimizing with lifetimes and such. Read more
Source§fn spawn_reader_decryption<'async_trait>(
self,
tx_init: Sender<(EncValueHeader, Vec<u8>)>,
tx: Sender<Result<(LastStreamElement, StreamChunk), CryptrError>>,
) -> Pin<Box<dyn Future<Output = Result<JoinHandle<Result<(), CryptrError>>, CryptrError>> + Send + 'async_trait>>where
Self: 'async_trait,
fn spawn_reader_decryption<'async_trait>(
self,
tx_init: Sender<(EncValueHeader, Vec<u8>)>,
tx: Sender<Result<(LastStreamElement, StreamChunk), CryptrError>>,
) -> Pin<Box<dyn Future<Output = Result<JoinHandle<Result<(), CryptrError>>, CryptrError>> + Send + 'async_trait>>where
Self: 'async_trait,
This must spawn the reader into the async context and then return.
The reason is, that you are way more flexible optimizing with lifetimes and such. Read more
Auto Trait Implementations§
impl Freeze for MemoryReader
impl RefUnwindSafe for MemoryReader
impl Send for MemoryReader
impl Sync for MemoryReader
impl Unpin for MemoryReader
impl UnwindSafe for MemoryReader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more