pub struct MemoryCacheOps { /* private fields */ }Expand description
In-memory cache file implementation useful for tests and embedded callers.
Implementations§
Trait Implementations§
Source§impl CacheOps for MemoryCacheOps
impl CacheOps for MemoryCacheOps
Source§fn read_at<'life0, 'life1, 'async_trait>(
&'life0 self,
offset: u64,
out: &'life1 mut [u8],
) -> Pin<Box<dyn Future<Output = GibbloxResult<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn read_at<'life0, 'life1, 'async_trait>(
&'life0 self,
offset: u64,
out: &'life1 mut [u8],
) -> Pin<Box<dyn Future<Output = GibbloxResult<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Read bytes at a fixed offset. Returns the number of bytes read.
Source§fn write_at<'life0, 'life1, 'async_trait>(
&'life0 self,
offset: u64,
data: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = GibbloxResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn write_at<'life0, 'life1, 'async_trait>(
&'life0 self,
offset: u64,
data: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = GibbloxResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Write all bytes at a fixed offset.
Auto Trait Implementations§
impl !Freeze for MemoryCacheOps
impl !RefUnwindSafe for MemoryCacheOps
impl Send for MemoryCacheOps
impl Sync for MemoryCacheOps
impl Unpin for MemoryCacheOps
impl UnsafeUnpin for MemoryCacheOps
impl UnwindSafe for MemoryCacheOps
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