Struct cyfs_bdt::MemChunkStore
source · [−]pub struct MemChunkStore(_);Implementations
sourceimpl MemChunkStore
impl MemChunkStore
Trait Implementations
sourceimpl ChunkReader for MemChunkStore
impl ChunkReader for MemChunkStore
fn clone_as_reader(&self) -> Box<dyn ChunkReader>ⓘNotable traits for Box<F, A>impl<F, A> Future for Box<F, A>where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
fn exists<'life0, 'life1, 'async_trait>(
&'life0 self,
chunk: &'life1 ChunkId
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P>where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
chunk: &'life1 ChunkId
) -> Pin<Box<dyn Future<Output = BuckyResult<Arc<Vec<u8>>>> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P>where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
fn read<'life0, 'life1, 'async_trait>(
&'life0 self,
chunk: &'life1 ChunkId
) -> Pin<Box<dyn Future<Output = BuckyResult<Box<dyn AsyncReadWithSeek + Unpin + Send + Sync>>> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P>where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
fn read_ext<'life0, 'life1, 'async_trait>(
&'life0 self,
chunk: &'life1 ChunkId,
ranges: Vec<Range<u64>>
) -> Pin<Box<dyn Future<Output = BuckyResult<Box<dyn Read + Unpin + Send + Sync>>> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P>where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
sourceimpl ChunkWriter for MemChunkStore
impl ChunkWriter for MemChunkStore
fn clone_as_writer(&self) -> Box<dyn ChunkWriter>ⓘNotable traits for Box<F, A>impl<F, A> Future for Box<F, A>where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
fn err<'life0, 'async_trait>(
&'life0 self,
_e: BuckyErrorCode
) -> Pin<Box<dyn Future<Output = BuckyResult<()>> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P>where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;where
'life0: 'async_trait,
Self: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
fn write<'life0, 'life1, 'async_trait>(
&'life0 self,
chunk: &'life1 ChunkId,
content: Arc<Vec<u8>>
) -> Pin<Box<dyn Future<Output = BuckyResult<()>> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P>where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
fn finish<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = BuckyResult<()>> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P>where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;where
'life0: 'async_trait,
Self: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
sourceimpl Clone for MemChunkStore
impl Clone for MemChunkStore
sourcefn clone(&self) -> MemChunkStore
fn clone(&self) -> MemChunkStore
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations
impl !RefUnwindSafe for MemChunkStore
impl Send for MemChunkStore
impl Sync for MemChunkStore
impl Unpin for MemChunkStore
impl !UnwindSafe for MemChunkStore
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more