Module rust_ipfs::repo

source ·
Expand description

Storage implementation(s) backing the crate::Ipfs.

Modules

Persistent fs backed repo.
Volatile memory backed repo

Structs

Describes a repo.
A wrapper for Cid that has a Multihash-based equality check.
Configuration for a repo.

Enums

Describes the outcome of BlockStore::put_block.
Describes the outcome of BlockStore::remove.
Describes the error variants for BlockStore::remove.
Errors variants describing the possible failures for Lock::try_exclusive.
PinKind is more specific pin description for writing purposes. Implements PartialEq<&PinMode>. Generic over Borrow<Cid> to allow storing both reference and owned value of Cid.
PinMode is the description of pin type for quering purposes.
Events used to communicate to the swarm on repo changes.

Traits

This API is being discussed and evolved, which will likely lead to breakage.
Generic layer of abstraction for a key-value data store.
A trait for describing repository locking.
Consolidates BlockStore and DataStore into a representation of storage.

Functions

Convenience for creating a new Repo from the RepoOptions.