Struct cyfs_bdt::local_chunk_store::LocalChunkWriter
source · [−]pub struct LocalChunkWriter(_);Implementations
sourceimpl LocalChunkWriter
impl LocalChunkWriter
pub fn from_path(
path: &Path,
chunk: &ChunkId,
ndc: &dyn NamedDataCache,
tracker: &dyn TrackerCache
) -> Self
pub async fn track_path(&self) -> BuckyResult<()>
pub fn new(
path: PathBuf,
tmp_path: Option<PathBuf>,
chunk: &ChunkId,
ndc: &dyn NamedDataCache,
tracker: &dyn TrackerCache
) -> Self
Trait Implementations
sourceimpl ChunkWriter for LocalChunkWriter
impl ChunkWriter for LocalChunkWriter
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 LocalChunkWriter
impl Clone for LocalChunkWriter
sourcefn clone(&self) -> LocalChunkWriter
fn clone(&self) -> LocalChunkWriter
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 more
Auto Trait Implementations
impl !RefUnwindSafe for LocalChunkWriter
impl Send for LocalChunkWriter
impl Sync for LocalChunkWriter
impl Unpin for LocalChunkWriter
impl !UnwindSafe for LocalChunkWriter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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