pub struct ChunkStorageLocal(pub PathBuf);Tuple Fields§
§0: PathBufTrait Implementations§
Source§impl ChunkStorage for ChunkStorageLocal
impl ChunkStorage for ChunkStorageLocal
fn read_chunk_content(&self, chunk: &ChunkHash) -> Result<Box<dyn Read + Send>>
fn write_chunk_content( &self, chunk: &ChunkHash, content: Box<dyn Read + Send>, ) -> Result<()>
fn delete_chunk_content(&self, chunk: &ChunkHash) -> Result<()>
fn path_from_chunk(&self, chunk: &ChunkHash) -> PathBuf
Auto Trait Implementations§
impl Freeze for ChunkStorageLocal
impl RefUnwindSafe for ChunkStorageLocal
impl Send for ChunkStorageLocal
impl Sync for ChunkStorageLocal
impl Unpin for ChunkStorageLocal
impl UnwindSafe for ChunkStorageLocal
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more