pub struct MemoryBlockStore { /* private fields */ }Implementations§
Trait Implementations§
Source§impl BlockStore for MemoryBlockStore
impl BlockStore for MemoryBlockStore
fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 BlockKey,
) -> Pin<Box<dyn Future<Output = VfsResult<Vec<u8>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_range<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 BlockKey,
off: u64,
len: u64,
) -> Pin<Box<dyn Future<Output = VfsResult<Vec<u8>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn put<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
key: &'life1 BlockKey,
data: &'life2 [u8],
) -> Pin<Box<dyn Future<Output = VfsResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn exists<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 BlockKey,
) -> Pin<Box<dyn Future<Output = VfsResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_many<'life0, 'life1, 'async_trait>(
&'life0 self,
keys: &'life1 [BlockKey],
) -> Pin<Box<dyn Future<Output = VfsResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn copy<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
src: &'life1 BlockKey,
dst: &'life2 BlockKey,
) -> Pin<Box<dyn Future<Output = VfsResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§impl Clone for MemoryBlockStore
impl Clone for MemoryBlockStore
Source§fn clone(&self) -> MemoryBlockStore
fn clone(&self) -> MemoryBlockStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MemoryBlockStore
impl Debug for MemoryBlockStore
Source§impl Default for MemoryBlockStore
impl Default for MemoryBlockStore
Source§fn default() -> MemoryBlockStore
fn default() -> MemoryBlockStore
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MemoryBlockStore
impl RefUnwindSafe for MemoryBlockStore
impl Send for MemoryBlockStore
impl Sync for MemoryBlockStore
impl Unpin for MemoryBlockStore
impl UnsafeUnpin for MemoryBlockStore
impl UnwindSafe for MemoryBlockStore
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