pub struct MemoryChunkedIO { /* private fields */ }Expand description
Memory-based chunked I/O implementation for testing.
Implementations§
Trait Implementations§
Source§impl ChunkedIO for MemoryChunkedIO
impl ChunkedIO for MemoryChunkedIO
Source§fn read_chunk<'life0, 'life1, 'async_trait>(
&'life0 mut self,
descriptor: &'life1 ChunkDescriptor,
) -> Pin<Box<dyn Future<Output = Result<Bytes>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn read_chunk<'life0, 'life1, 'async_trait>(
&'life0 mut self,
descriptor: &'life1 ChunkDescriptor,
) -> Pin<Box<dyn Future<Output = Result<Bytes>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Read a chunk at the specified offset.
Source§fn write_chunk<'life0, 'life1, 'async_trait>(
&'life0 mut self,
descriptor: &'life1 ChunkDescriptor,
data: Bytes,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn write_chunk<'life0, 'life1, 'async_trait>(
&'life0 mut self,
descriptor: &'life1 ChunkDescriptor,
data: Bytes,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Write a chunk at the specified offset.
Auto Trait Implementations§
impl Freeze for MemoryChunkedIO
impl RefUnwindSafe for MemoryChunkedIO
impl Send for MemoryChunkedIO
impl Sync for MemoryChunkedIO
impl Unpin for MemoryChunkedIO
impl UnsafeUnpin for MemoryChunkedIO
impl UnwindSafe for MemoryChunkedIO
Blanket Implementations§
impl<T> Allocation for T
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